From 2e9c39be3cd05f763cbcef08f817f740de1b6e12 Mon Sep 17 00:00:00 2001 From: abhayohri <111389143+abhayohri@users.noreply.github.com> Date: Tue, 21 Feb 2023 09:49:38 -0800 Subject: [PATCH 01/27] Adds base for updating Microsoft.ResourceHealth from version preview/2022-10-01-preview to version 2022-10-01 --- .../stable/2022-10-01/ResourceHealth.json | 2155 +++++++++++++++++ .../AvailabilityStatus_GetByResource.json | 43 + .../examples/AvailabilityStatuses_List.json | 63 + ...ilabilityStatuses_ListByResourceGroup.json | 77 + ...labilityStatuses_ListBySubscriptionId.json | 76 + .../examples/EmergingIssues_Get.json | 84 + .../examples/EmergingIssues_List.json | 88 + ...vent_GetBySubscriptionIdAndTrackingId.json | 103 + .../Event_GetByTenantIdAndTrackingId.json | 102 + ...hDetailsBySubscriptionIdAndTrackingId.json | 101 + ...t_fetchDetailsByTenantIdAndTrackingId.json | 100 + .../examples/Events_ListBySingleResource.json | 104 + .../examples/Events_ListBySubscriptionId.json | 107 + .../examples/Events_ListByTenantId.json | 106 + .../examples/ImpactedResources_Get.json | 22 + .../ImpactedResources_GetByTenantId.json | 21 + ...es_ListBySubscriptionId_ListByEventId.json | 62 + ...esources_ListByTenantId_ListByEventId.json | 36 + .../examples/Metadata_GetEntity.json | 39 + .../2022-10-01/examples/Metadata_List.json | 1945 +++++++++++++++ .../2022-10-01/examples/Operations_List.json | 163 ++ ...es_ListBySubscriptionId_ListByEventId.json | 66 + ...esources_ListByTenantId_ListByEventId.json | 65 + 23 files changed, 5728 insertions(+) create mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/ResourceHealth.json create mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/AvailabilityStatus_GetByResource.json create mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/AvailabilityStatuses_List.json create mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/AvailabilityStatuses_ListByResourceGroup.json create mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/AvailabilityStatuses_ListBySubscriptionId.json create mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/EmergingIssues_Get.json create mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/EmergingIssues_List.json create mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Event_GetBySubscriptionIdAndTrackingId.json create mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Event_GetByTenantIdAndTrackingId.json create mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Event_fetchDetailsBySubscriptionIdAndTrackingId.json create mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Event_fetchDetailsByTenantIdAndTrackingId.json create mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Events_ListBySingleResource.json create mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Events_ListBySubscriptionId.json create mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Events_ListByTenantId.json create mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ImpactedResources_Get.json create mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ImpactedResources_GetByTenantId.json create mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ImpactedResources_ListBySubscriptionId_ListByEventId.json create mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ImpactedResources_ListByTenantId_ListByEventId.json create mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Metadata_GetEntity.json create mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Metadata_List.json create mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Operations_List.json create mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/SecurityAdvisoryImpactedResources_ListBySubscriptionId_ListByEventId.json create mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/SecurityAdvisoryImpactedResources_ListByTenantId_ListByEventId.json diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/ResourceHealth.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/ResourceHealth.json new file mode 100644 index 000000000000..ad1af4fad2a2 --- /dev/null +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/ResourceHealth.json @@ -0,0 +1,2155 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-10-01-preview", + "title": "Microsoft.ResourceHealth", + "description": "The Resource Health Client." + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/availabilityStatuses": { + "get": { + "tags": [ + "AvailabilityStatuses" + ], + "operationId": "AvailabilityStatuses_ListBySubscriptionId", + "description": "Lists the current availability status for all the resources in the subscription.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/FilterParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ExpandParameter" + } + ], + "responses": { + "200": { + "description": "The list of current availability status for all the resources in the subscription", + "schema": { + "$ref": "#/definitions/availabilityStatusListResult" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "ListHealthBySubscriptionId": { + "$ref": "./examples/AvailabilityStatuses_ListBySubscriptionId.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceHealth/availabilityStatuses": { + "get": { + "tags": [ + "AvailabilityStatuses" + ], + "operationId": "AvailabilityStatuses_ListByResourceGroup", + "description": "Lists the current availability status for all the resources in the resource group.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/FilterParameter" + }, + { + "$ref": "#/parameters/ExpandParameter" + } + ], + "responses": { + "200": { + "description": "The list of current availability status for all the resources in the resource group", + "schema": { + "$ref": "#/definitions/availabilityStatusListResult" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "ListByResourceGroup": { + "$ref": "./examples/AvailabilityStatuses_ListByResourceGroup.json" + } + } + } + }, + "/providers/Microsoft.ResourceHealth/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "description": "Lists available operations for the resourcehealth resource provider", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The list of available operations for the resourcehealth resource provider", + "schema": { + "$ref": "#/definitions/operationListResult" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GetOperationsList": { + "$ref": "./examples/Operations_List.json" + } + } + } + }, + "/{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses/current": { + "get": { + "tags": [ + "AvailabilityStatuses" + ], + "operationId": "AvailabilityStatuses_GetByResource", + "description": "Gets current availability status for a single resource", + "parameters": [ + { + "name": "resourceUri", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the resource, including the resource name and resource type. Currently the API support not nested and one nesting level resource types : /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name} and /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/FilterParameter" + }, + { + "$ref": "#/parameters/ExpandParameter" + } + ], + "responses": { + "200": { + "description": "The current availability status for a single resource", + "schema": { + "$ref": "#/definitions/availabilityStatus" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GetCurrentHealthByResource": { + "$ref": "./examples/AvailabilityStatus_GetByResource.json" + } + } + } + }, + "/{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses": { + "get": { + "tags": [ + "AvailabilityStatuses" + ], + "operationId": "AvailabilityStatuses_List", + "description": "Lists all historical availability transitions and impacting events for a single resource.", + "parameters": [ + { + "name": "resourceUri", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the resource, including the resource name and resource type. Currently the API support not nested and one nesting level resource types : /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name} and /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/FilterParameter" + }, + { + "$ref": "#/parameters/ExpandParameter" + } + ], + "responses": { + "200": { + "description": "The list of historical availability statuses for a single resource", + "schema": { + "$ref": "#/definitions/availabilityStatusListResult" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "GetHealthHistoryByResource": { + "$ref": "./examples/AvailabilityStatuses_List.json" + } + } + } + }, + "/providers/Microsoft.ResourceHealth/metadata": { + "get": { + "tags": [ + "Metadata" + ], + "operationId": "Metadata_List", + "description": "Gets the list of metadata entities.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. Successfully retrieved metadata entities", + "schema": { + "$ref": "#/definitions/MetadataEntityListResult" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GetMetadata": { + "$ref": "./examples/Metadata_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.ResourceHealth/metadata/{name}": { + "get": { + "tags": [ + "Metadata" + ], + "operationId": "Metadata_GetEntity", + "description": "Gets the list of metadata entities.", + "parameters": [ + { + "name": "name", + "in": "path", + "description": "Name of metadata entity.", + "required": true, + "type": "string" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. Successfully retrieved metadata entities", + "schema": { + "$ref": "#/definitions/MetadataEntity" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GetMetadata": { + "$ref": "./examples/Metadata_GetEntity.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources": { + "get": { + "tags": [ + "EventImpactedResources" + ], + "operationId": "ImpactedResources_ListBySubscriptionIdAndEventId", + "description": "Lists impacted resources in the subscription by an event.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/EventTrackingIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/FilterParameter" + } + ], + "responses": { + "200": { + "description": "The list of impacted resources in the subscription by an event.", + "schema": { + "$ref": "#/definitions/eventImpactedResourceListResult" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "ListImpactedResourcesBySubscriptionId": { + "$ref": "./examples/ImpactedResources_ListBySubscriptionId_ListByEventId.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources/{impactedResourceName}": { + "get": { + "tags": [ + "EventImpactedResources" + ], + "operationId": "ImpactedResources_Get", + "description": "Gets the specific impacted resource in the subscription by an event.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/EventTrackingIdParameter" + }, + { + "$ref": "#/parameters/ImpactedResourceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The details of Impacted Resource.", + "schema": { + "$ref": "#/definitions/eventImpactedResource" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ImpactedResourcesGet": { + "$ref": "./examples/ImpactedResources_Get.json" + } + } + } + }, + "/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources": { + "get": { + "tags": [ + "EventImpactedResources" + ], + "operationId": "ImpactedResources_ListByTenantIdAndEventId", + "description": "Lists impacted resources in the tenant by an event.", + "parameters": [ + { + "$ref": "#/parameters/EventTrackingIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/FilterParameter" + } + ], + "responses": { + "200": { + "description": "The list of impacted resources in the tenant by an event.", + "schema": { + "$ref": "#/definitions/eventImpactedResourceListResult" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "ListEventsByTenantId": { + "$ref": "./examples/ImpactedResources_ListByTenantId_ListByEventId.json" + } + } + } + }, + "/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/impactedResources/{impactedResourceName}": { + "get": { + "tags": [ + "EventImpactedResources" + ], + "operationId": "ImpactedResources_GetByTenantId", + "description": "Gets the specific impacted resource in the tenant by an event.", + "parameters": [ + { + "$ref": "#/parameters/EventTrackingIdParameter" + }, + { + "$ref": "#/parameters/ImpactedResourceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The details of Impacted Resource.", + "schema": { + "$ref": "#/definitions/eventImpactedResource" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ImpactedResourcesGet": { + "$ref": "./examples/ImpactedResources_GetByTenantId.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/listSecurityAdvisoryImpactedResources": { + "post": { + "tags": [ + "SecurityAdvisoryImpactedResources" + ], + "operationId": "SecurityAdvisoryImpactedResources_ListBySubscriptionIdAndEventId", + "description": "Lists impacted resources in the subscription by an event (Security Advisory).", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/EventTrackingIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/FilterParameter" + } + ], + "responses": { + "200": { + "description": "The list of impacted resources in the subscription by an event (Security Advisory).", + "schema": { + "$ref": "#/definitions/eventImpactedResourceListResult" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "ListSecurityAdvisoryImpactedResourcesBySubscriptionId": { + "$ref": "./examples/SecurityAdvisoryImpactedResources_ListBySubscriptionId_ListByEventId.json" + } + } + } + }, + "/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/listSecurityAdvisoryImpactedResources": { + "post": { + "tags": [ + "SecurityAdvisoryImpactedResources" + ], + "operationId": "SecurityAdvisoryImpactedResources_ListByTenantIdAndEventId", + "description": "Lists impacted resources in the tenant by an event (Security Advisory).", + "parameters": [ + { + "$ref": "#/parameters/EventTrackingIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/FilterParameter" + } + ], + "responses": { + "200": { + "description": "The list of impacted resources in the tenant by an event (Security Advisory).", + "schema": { + "$ref": "#/definitions/eventImpactedResourceListResult" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "ListSecurityAdvisoryImpactedResourcesByTenantId": { + "$ref": "./examples/SecurityAdvisoryImpactedResources_ListByTenantId_ListByEventId.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events": { + "get": { + "tags": [ + "Events" + ], + "operationId": "Events_ListBySubscriptionId", + "description": "Lists service health events in the subscription.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/FilterParameter" + }, + { + "$ref": "#/parameters/QueryStartTimeParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "The list of current service health events in the subscription", + "schema": { + "$ref": "#/definitions/events" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "ListEventsBySubscriptionId": { + "$ref": "./examples/Events_ListBySubscriptionId.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}": { + "get": { + "tags": [ + "Event" + ], + "operationId": "Event_GetBySubscriptionIdAndTrackingId", + "description": "Service health event in the subscription by event tracking id", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/FilterParameter" + }, + { + "$ref": "#/parameters/QueryStartTimeParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/EventTrackingIdParameter" + } + ], + "responses": { + "200": { + "description": "Service Health Event in the subscription requested by tracking id.", + "schema": { + "$ref": "#/definitions/event" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "SecurityAdvisoriesEventBySubscriptionIdAndTrackingId": { + "$ref": "./examples/Event_GetBySubscriptionIdAndTrackingId.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/fetchEventDetails": { + "post": { + "tags": [ + "Event" + ], + "operationId": "Event_fetchDetailsBySubscriptionIdAndTrackingId", + "description": "Service health event details in the subscription by event tracking id. This can be used to fetch sensitive properties for Security Advisory events", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/EventTrackingIdParameter" + } + ], + "responses": { + "200": { + "description": "Service Health Event details in the subscription requested by tracking id.", + "schema": { + "$ref": "#/definitions/event" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EventDetailsBySubscriptionIdAndTrackingId": { + "$ref": "./examples/Event_fetchDetailsBySubscriptionIdAndTrackingId.json" + } + } + } + }, + "/providers/Microsoft.ResourceHealth/events": { + "get": { + "tags": [ + "Events" + ], + "operationId": "Events_ListByTenantId", + "description": "Lists current service health events in the tenant.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/FilterParameter" + }, + { + "$ref": "#/parameters/QueryStartTimeParameter" + } + ], + "responses": { + "200": { + "description": "The list of service health events in the tenant", + "schema": { + "$ref": "#/definitions/events" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "ListEventsByTenantId": { + "$ref": "./examples/Events_ListByTenantId.json" + } + } + } + }, + "/providers/Microsoft.ResourceHealth/events/{eventTrackingId}": { + "get": { + "tags": [ + "Event" + ], + "operationId": "Event_GetByTenantIdAndTrackingId", + "description": "Service health event in the tenant by event tracking id", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/FilterParameter" + }, + { + "$ref": "#/parameters/QueryStartTimeParameter" + }, + { + "$ref": "#/parameters/EventTrackingIdParameter" + } + ], + "responses": { + "200": { + "description": "Service Health Event in the subscription requested by tracking id.", + "schema": { + "$ref": "#/definitions/event" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EventByTenantIdAndTrackingId": { + "$ref": "./examples/Event_GetByTenantIdAndTrackingId.json" + } + } + } + }, + "/providers/Microsoft.ResourceHealth/events/{eventTrackingId}/fetchEventDetails": { + "post": { + "tags": [ + "Event" + ], + "operationId": "Event_fetchDetailsByTenantIdAndTrackingId", + "description": "Service health event details in the tenant by event tracking id. This can be used to fetch sensitive properties for Security Advisory events", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/EventTrackingIdParameter" + } + ], + "responses": { + "200": { + "description": "Service health event details in the tenant by event tracking id.", + "schema": { + "$ref": "#/definitions/event" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "EventDetailsByTenantIdAndTrackingId": { + "$ref": "./examples/Event_fetchDetailsByTenantIdAndTrackingId.json" + } + } + } + }, + "/{resourceUri}/providers/Microsoft.ResourceHealth/events": { + "get": { + "tags": [ + "Events" + ], + "operationId": "Events_ListBySingleResource", + "description": "Lists current service health events for given resource.", + "parameters": [ + { + "name": "resourceUri", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the resource, including the resource name and resource type. Currently the API support not nested and one nesting level resource types : /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name} and /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/FilterParameter" + } + ], + "responses": { + "200": { + "description": "The list of current service health events for given resource", + "schema": { + "$ref": "#/definitions/events" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "ListEventsBySingleResource": { + "$ref": "./examples/Events_ListBySingleResource.json" + } + } + } + }, + "/providers/Microsoft.ResourceHealth/emergingIssues": { + "get": { + "tags": [ + "EmergingIssues" + ], + "operationId": "EmergingIssues_List", + "description": "Lists Azure services' emerging issues.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The body contains a list of azure emerging issues.", + "schema": { + "$ref": "#/definitions/emergingIssueListResult" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GetEmergingIssues": { + "$ref": "./examples/EmergingIssues_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.ResourceHealth/emergingIssues/{issueName}": { + "get": { + "tags": [ + "EmergingIssues" + ], + "operationId": "EmergingIssues_Get", + "description": "Gets Azure services' emerging issues.", + "parameters": [ + { + "$ref": "#/parameters/IssueNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The body contains properties of azure emerging issues, which includes a list of status banner and status active events.", + "schema": { + "$ref": "#/definitions/emergingIssuesGetResult" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GetEmergingIssues": { + "$ref": "./examples/EmergingIssues_Get.json" + } + } + } + } + }, + "definitions": { + "events": { + "type": "object", + "properties": { + "value": { + "type": "array", + "x-ms-identifiers": [], + "items": { + "$ref": "#/definitions/event" + }, + "description": "The list of event." + }, + "nextLink": { + "type": "string", + "description": "The URI to fetch the next page of events. Call ListNext() with this URI to fetch the next page of events." + } + }, + "required": [ + "value" + ], + "description": "The List events operation response." + }, + "event": { + "type": "object", + "description": "Service health event", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "type": "object", + "description": "Properties of event.", + "properties": { + "eventType": { + "type": "string", + "description": "Type of event.", + "enum": [ + "ServiceIssue", + "PlannedMaintenance", + "HealthAdvisory", + "RCA", + "EmergingIssues", + "SecurityAdvisory" + ], + "x-ms-enum": { + "name": "EventTypeValues", + "modelAsString": true + } + }, + "eventSource": { + "type": "string", + "description": "Source of event.", + "enum": [ + "ResourceHealth", + "ServiceHealth" + ], + "x-ms-enum": { + "name": "EventSourceValues", + "modelAsString": true + } + }, + "status": { + "type": "string", + "description": "Current status of event.", + "enum": [ + "Active", + "Resolved" + ], + "x-ms-enum": { + "name": "EventStatusValues", + "modelAsString": true + } + }, + "title": { + "type": "string", + "description": "Title text of event." + }, + "summary": { + "type": "string", + "description": "Summary text of event." + }, + "header": { + "type": "string", + "description": "Header text of event." + }, + "level": { + "type": "string", + "description": "Level of insight.", + "enum": [ + "Critical", + "Warning" + ], + "x-ms-enum": { + "name": "LevelValues", + "modelAsString": true + } + }, + "eventLevel": { + "type": "string", + "description": "Level of event.", + "enum": [ + "Critical", + "Error", + "Warning", + "Informational" + ], + "x-ms-enum": { + "name": "EventLevelValues", + "modelAsString": true + } + }, + "externalIncidentId": { + "type": "string", + "description": "The id of the Incident" + }, + "article": { + "type": "object", + "description": "Article of event.", + "properties": { + "articleContent": { + "type": "string", + "description": "Article content of event." + } + } + }, + "links": { + "type": "array", + "x-ms-identifiers": [], + "description": "Useful links of event.", + "items": { + "$ref": "#/definitions/link" + } + }, + "impactStartTime": { + "type": "string", + "description": "It provides the Timestamp for when the health impacting event started.", + "format": "date-time" + }, + "impactMitigationTime": { + "type": "string", + "description": "It provides the Timestamp for when the health impacting event resolved.", + "format": "date-time" + }, + "impact": { + "type": "array", + "x-ms-identifiers": [], + "description": "List services impacted by the service health event.", + "items": { + "$ref": "#/definitions/impact" + } + }, + "recommendedActions": { + "type": "object", + "description": "Recommended actions of event.", + "properties": { + "message": { + "type": "string", + "description": "Recommended action title for the service health event." + }, + "actions": { + "type": "array", + "x-ms-identifiers": [], + "description": "Recommended actions for the service health event.", + "items": { + "type": "object", + "description": "Recommended action for the service health event.", + "properties": { + "groupId": { + "type": "integer", + "format": "int32", + "description": "Recommended action group Id for the service health event." + }, + "actionText": { + "type": "string", + "description": "Recommended action text" + } + } + } + }, + "localeCode": { + "type": "string", + "description": "Recommended action locale for the service health event." + } + } + }, + "faqs": { + "type": "array", + "x-ms-identifiers": [], + "description": "Frequently asked questions for the service health event.", + "items": { + "$ref": "#/definitions/faq" + } + }, + "isHIR": { + "type": "boolean", + "description": "It provides information if the event is High incident rate event or not." + }, + "enableMicrosoftSupport": { + "type": "boolean", + "description": "Tells if we want to enable or disable Microsoft Support for this event." + }, + "description": { + "type": "string", + "description": "Contains the communication message for the event, that could include summary, root cause and other details." + }, + "platformInitiated": { + "type": "boolean", + "description": "Is true if the event is platform initiated." + }, + "enableChatWithUs": { + "type": "boolean", + "description": "Tells if we want to enable or disable Microsoft Support for this event." + }, + "priority": { + "type": "integer", + "format": "int32", + "description": "Priority level of the event. Has value from 0 to 23. 0 is the highest priority. Service issue events have higher priority followed by planned maintenance and health advisory. Critical events have higher priority followed by error, warning and informational. Furthermore, active events have higher priority than resolved." + }, + "lastUpdateTime": { + "type": "string", + "description": "It provides the Timestamp for when the health impacting event was last updated.", + "format": "date-time" + }, + "hirStage": { + "type": "string", + "description": "Stage for HIR Document" + }, + "additionalInformation": { + "type": "object", + "description": "Additional information", + "properties": { + "message": { + "type": "string", + "description": "Additional information Message" + } + } + }, + "duration": { + "type": "integer", + "description": "duration in seconds", + "format": "int32" + }, + "impactType": { + "type": "string", + "description": "The type of the impact" + } + } + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ] + }, + "link": { + "type": "object", + "description": "Useful links for service health event.", + "properties": { + "type": { + "type": "string", + "description": "Type of link.", + "enum": [ + "Button", + "Hyperlink" + ], + "x-ms-enum": { + "name": "LinkTypeValues", + "modelAsString": true + } + }, + "displayText": { + "type": "object", + "description": "Display text of link.", + "properties": { + "value": { + "type": "string", + "description": "Display text of link." + }, + "localizedValue": { + "type": "string", + "description": "Localized display text of link." + } + } + }, + "extensionName": { + "type": "string", + "description": "It provides the name of portal extension to produce link for given service health event." + }, + "bladeName": { + "type": "string", + "description": "It provides the name of portal extension blade to produce link for given service health event." + }, + "parameters": { + "type": "object", + "description": "It provides a map of parameter name and value for portal extension blade to produce lik for given service health event." + } + } + }, + "impact": { + "type": "object", + "description": "Azure service impacted by the service health event.", + "properties": { + "impactedService": { + "type": "string", + "description": "Impacted service name." + }, + "impactedRegions": { + "type": "array", + "x-ms-identifiers": [], + "description": "List regions impacted by the service health event.", + "items": { + "$ref": "#/definitions/impactedServiceRegion" + } + } + } + }, + "impactedServiceRegion": { + "type": "object", + "description": "Azure region impacted by the service health event.", + "properties": { + "impactedRegion": { + "type": "string", + "description": "Impacted region name." + }, + "status": { + "type": "string", + "description": "Current status of event in the region.", + "enum": [ + "Active", + "Resolved" + ], + "x-ms-enum": { + "name": "EventStatusValues", + "modelAsString": true + } + }, + "impactedSubscriptions": { + "type": "array", + "x-ms-identifiers": [], + "description": "List subscription impacted by the service health event.", + "items": { + "type": "string", + "description": "Subscription impacted by the service health event." + } + }, + "impactedTenants": { + "type": "array", + "x-ms-identifiers": [], + "description": "List tenant impacted by the service health event.", + "items": { + "type": "string", + "description": "Tenant impacted by the service health event." + } + }, + "lastUpdateTime": { + "type": "string", + "description": "It provides the Timestamp for when the last update for the service health event.", + "format": "date-time" + }, + "updates": { + "type": "array", + "x-ms-identifiers": [], + "description": "List of updates for given service health event.", + "items": { + "$ref": "#/definitions/update" + } + } + } + }, + "update": { + "type": "object", + "description": "Update for service health event.", + "properties": { + "summary": { + "type": "string", + "description": "Summary text for the given update for the service health event." + }, + "updateDateTime": { + "type": "string", + "description": "It provides the Timestamp for the given update for the service health event.", + "format": "date-time" + } + } + }, + "faq": { + "type": "object", + "description": "Frequently asked question for the service health event", + "properties": { + "question": { + "type": "string", + "description": "FAQ question for the service health event." + }, + "answer": { + "type": "string", + "description": "FAQ answer for the service health event." + }, + "localeCode": { + "type": "string", + "description": "FAQ locale for the service health event." + } + } + }, + "impactedResourceStatus": { + "type": "object", + "description": "impactedResource with health status", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "type": "object", + "description": "Properties of impacted resource status.", + "properties": { + "availabilityState": { + "type": "string", + "description": "Impacted resource status of the resource.", + "enum": [ + "Available", + "Unavailable", + "Degraded", + "Unknown" + ], + "x-ms-enum": { + "name": "AvailabilityStateValues", + "modelAsString": true + } + }, + "title": { + "type": "string", + "description": "Title description of the impacted resource status." + }, + "summary": { + "type": "string", + "description": "Summary description of the impacted resource status." + }, + "reasonType": { + "type": "string", + "description": "When the resource's availabilityState is Unavailable, it describes where the health impacting event was originated.", + "enum": [ + "Unplanned", + "Planned", + "UserInitiated" + ], + "x-ms-enum": { + "name": "ReasonTypeValues", + "modelAsString": true + } + }, + "occurredTime": { + "type": "string", + "description": "Timestamp for when last change in health status occurred.", + "format": "date-time" + } + } + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ] + }, + "MetadataEntityListResult": { + "description": "The list of metadata entities", + "type": "object", + "properties": { + "value": { + "description": "The list of metadata entities.", + "type": "array", + "items": { + "$ref": "#/definitions/MetadataEntity" + } + }, + "nextLink": { + "description": "The link used to get the next page of metadata.", + "type": "string" + } + } + }, + "MetadataEntity": { + "description": "The metadata entity contract.", + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/MetadataEntityProperties", + "description": "The metadata entity properties.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ] + }, + "MetadataEntityProperties": { + "description": "The metadata entity properties", + "type": "object", + "properties": { + "displayName": { + "description": "The display name.", + "type": "string" + }, + "dependsOn": { + "description": "The list of keys on which this entity depends on.", + "type": "array", + "items": { + "type": "string" + } + }, + "applicableScenarios": { + "description": "The list of scenarios applicable to this metadata entity.", + "type": "array", + "items": { + "enum": [ + "Alerts" + ], + "type": "string", + "x-ms-enum": { + "name": "Scenario", + "modelAsString": true + } + } + }, + "supportedValues": { + "description": "The list of supported values.", + "type": "array", + "items": { + "$ref": "#/definitions/MetadataSupportedValueDetail" + } + } + } + }, + "MetadataSupportedValueDetail": { + "description": "The metadata supported value detail.", + "type": "object", + "properties": { + "id": { + "description": "The id.", + "type": "string" + }, + "displayName": { + "description": "The display name.", + "type": "string" + }, + "resourceTypes": { + "description": "The list of associated resource types.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "availabilityStatusListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/availabilityStatus" + }, + "description": "The list of availabilityStatuses." + }, + "nextLink": { + "type": "string", + "description": "The URI to fetch the next page of availabilityStatuses. Call ListNext() with this URI to fetch the next page of availabilityStatuses." + } + }, + "required": [ + "value" + ], + "description": "The List availabilityStatus operation response." + }, + "availabilityStatus": { + "type": "object", + "description": "availabilityStatus of a resource.", + "properties": { + "id": { + "type": "string", + "description": "Azure Resource Manager Identity for the availabilityStatuses resource." + }, + "name": { + "type": "string", + "description": "current." + }, + "type": { + "type": "string", + "description": "Microsoft.ResourceHealth/AvailabilityStatuses." + }, + "location": { + "type": "string", + "description": "Azure Resource Manager geo location of the resource." + }, + "properties": { + "type": "object", + "description": "Properties of availability state.", + "properties": { + "availabilityState": { + "type": "string", + "description": "Availability status of the resource. When it is null, this availabilityStatus object represents an availability impacting event", + "enum": [ + "Available", + "Unavailable", + "Degraded", + "Unknown" + ], + "x-ms-enum": { + "name": "AvailabilityStateValues", + "modelAsString": true + } + }, + "title": { + "type": "string", + "description": "Title description of the availability status." + }, + "summary": { + "type": "string", + "description": "Summary description of the availability status." + }, + "detailedStatus": { + "type": "string", + "description": "Details of the availability status." + }, + "reasonType": { + "type": "string", + "description": "When the resource's availabilityState is Unavailable, it describes where the health impacting event was originated. Examples are planned, unplanned, user initiated or an outage etc." + }, + "context": { + "type": "string", + "description": "When an event is created, it can either be triggered by a customer or the platform of the resource and this field will illustrate that. This field is connected to the category field in this object." + }, + "category": { + "type": "string", + "description": "When a context field is set to Platform, this field will reflect if the event was planned or unplanned. If the context field does not have a value of Platform, then this field will be ignored." + }, + "rootCauseAttributionTime": { + "type": "string", + "description": "When the resource's availabilityState is Unavailable, it provides the Timestamp for when the health impacting event was received.", + "format": "date-time" + }, + "healthEventType": { + "type": "string", + "description": "In case of an availability impacting event, it describes when the health impacting event was originated. Examples are Lifecycle, Downtime, Fault Analysis etc." + }, + "healthEventCause": { + "type": "string", + "description": "In case of an availability impacting event, it describes where the health impacting event was originated. Examples are PlatformInitiated, UserInitiated etc." + }, + "healthEventCategory": { + "type": "string", + "description": "In case of an availability impacting event, it describes the category of a PlatformInitiated health impacting event. Examples are Planned, Unplanned etc." + }, + "healthEventId": { + "type": "string", + "description": "It is a unique Id that identifies the event" + }, + "resolutionETA": { + "type": "string", + "description": "When the resource's availabilityState is Unavailable and the reasonType is not User Initiated, it provides the date and time for when the issue is expected to be resolved.", + "format": "date-time" + }, + "occuredTime": { + "type": "string", + "description": "Timestamp for when last change in health status occurred.", + "format": "date-time" + }, + "reasonChronicity": { + "type": "string", + "description": "Chronicity of the availability transition.", + "enum": [ + "Transient", + "Persistent" + ], + "x-ms-enum": { + "name": "reasonChronicityTypes", + "modelAsString": true + } + }, + "reportedTime": { + "type": "string", + "description": "Timestamp for when the health was last checked. ", + "format": "date-time" + }, + "recentlyResolved": { + "type": "object", + "description": "An annotation describing a change in the availabilityState to Available from Unavailable with a reasonType of type Unplanned", + "properties": { + "unavailableOccuredTime": { + "type": "string", + "description": "Timestamp for when the availabilityState changed to Unavailable", + "format": "date-time" + }, + "resolvedTime": { + "type": "string", + "description": "Timestamp when the availabilityState changes to Available.", + "format": "date-time" + }, + "unavailableSummary": { + "type": "string", + "description": "Brief description of cause of the resource becoming unavailable." + } + } + }, + "recommendedActions": { + "type": "array", + "description": "Lists actions the user can take based on the current availabilityState of the resource.", + "items": { + "$ref": "#/definitions/recommendedAction" + }, + "x-ms-identifiers": [ + "action" + ] + }, + "serviceImpactingEvents": { + "type": "array", + "description": "Lists the service impacting events that may be affecting the health of the resource.", + "items": { + "$ref": "#/definitions/serviceImpactingEvent" + }, + "x-ms-identifiers": [ + "correlationId" + ] + } + } + } + } + }, + "operationListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/operation" + }, + "x-ms-identifiers": [ + "name" + ], + "description": "List of operations available in the resourcehealth resource provider." + } + }, + "required": [ + "value" + ], + "description": "Lists the operations response." + }, + "operation": { + "description": "Operation available in the resourcehealth resource provider.", + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the operation." + }, + "display": { + "type": "object", + "description": "Properties of the operation.", + "properties": { + "provider": { + "type": "string", + "description": "Provider name." + }, + "resource": { + "type": "string", + "description": "Resource name." + }, + "operation": { + "type": "string", + "description": "Operation name." + }, + "description": { + "type": "string", + "description": "Description of the operation." + } + } + } + } + }, + "recommendedAction": { + "type": "object", + "description": "Lists actions the user can take based on the current availabilityState of the resource.", + "properties": { + "action": { + "type": "string", + "description": "Recommended action." + }, + "actionUrl": { + "type": "string", + "description": "Link to the action" + }, + "actionUrlText": { + "type": "string", + "description": "Substring of action, it describes which text should host the action url." + } + } + }, + "serviceImpactingEvent": { + "type": "object", + "description": "Lists the service impacting events that may be affecting the health of the resource.", + "properties": { + "eventStartTime": { + "type": "string", + "description": "Timestamp for when the event started.", + "format": "date-time" + }, + "eventStatusLastModifiedTime": { + "type": "string", + "description": "Timestamp for when event was submitted/detected.", + "format": "date-time" + }, + "correlationId": { + "type": "string", + "description": "Correlation id for the event" + }, + "status": { + "type": "object", + "description": "Status of the service impacting event.", + "properties": { + "value": { + "type": "string", + "description": "Current status of the event" + } + } + }, + "incidentProperties": { + "type": "object", + "description": "Properties of the service impacting event.", + "properties": { + "title": { + "type": "string", + "description": "Title of the incident." + }, + "service": { + "type": "string", + "description": "Service impacted by the event." + }, + "region": { + "type": "string", + "description": "Region impacted by the event." + }, + "incidentType": { + "type": "string", + "description": "Type of Event." + } + } + } + } + }, + "statusBanner": { + "type": "object", + "description": "Banner type of emerging issue.", + "properties": { + "title": { + "type": "string", + "description": "The banner title." + }, + "message": { + "type": "string", + "description": "The details of banner." + }, + "cloud": { + "type": "string", + "description": "The cloud type of this banner." + }, + "lastModifiedTime": { + "type": "string", + "description": "The last time modified on this banner.", + "format": "date-time" + } + } + }, + "impactedRegion": { + "type": "object", + "description": "Object of impacted region.", + "properties": { + "id": { + "type": "string", + "description": "The impacted region id." + }, + "name": { + "type": "string", + "description": "The impacted region name." + } + } + }, + "eventImpactedResourceListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/eventImpactedResource" + }, + "description": "The list of eventImpactedResources." + }, + "nextLink": { + "type": "string", + "description": "The URI to fetch the next page of events. Call ListNext() with this URI to fetch the next page of impacted resource." + } + }, + "required": [ + "value" + ], + "description": "The List of eventImpactedResources operation response." + }, + "eventImpactedResource": { + "type": "object", + "description": "Impacted resource for an event.", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "type": "object", + "description": "Properties of impacted resource.", + "properties": { + "targetResourceType": { + "readOnly": true, + "type": "string", + "description": "Resource type within Microsoft cloud." + }, + "targetResourceId": { + "readOnly": true, + "type": "string", + "description": "Identity for resource within Microsoft cloud." + }, + "targetRegion": { + "readOnly": true, + "type": "string", + "description": "Impacted resource region name." + }, + "info": { + "type": "array", + "items": { + "$ref": "#/definitions/keyValueItem" + }, + "description": "Additional information.", + "x-ms-identifiers": [] + } + } + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ] + }, + "keyValueItem": { + "type": "object", + "description": "Key value tuple.", + "properties": { + "key": { + "readOnly": true, + "type": "string", + "description": "Key of tuple." + }, + "value": { + "readOnly": true, + "type": "string", + "description": "Value of tuple." + } + } + }, + "emergingIssueListResult": { + "description": "The list of emerging issues.", + "type": "object", + "properties": { + "value": { + "description": "The list of emerging issues.", + "type": "array", + "items": { + "$ref": "#/definitions/emergingIssuesGetResult" + } + }, + "nextLink": { + "description": "The link used to get the next page of emerging issues.", + "type": "string" + } + } + }, + "emergingIssuesGetResult": { + "description": "The Get EmergingIssues operation response.", + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/emergingIssue", + "description": "The emerging issue entity properties.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/Resource" + } + ] + }, + "emergingIssue": { + "type": "object", + "description": "On-going emerging issue from azure status.", + "properties": { + "refreshTimestamp": { + "type": "string", + "description": "Timestamp for when last time refreshed for ongoing emerging issue.", + "format": "date-time" + }, + "statusBanners": { + "type": "array", + "items": { + "$ref": "#/definitions/statusBanner" + }, + "description": "The list of emerging issues of banner type.", + "x-ms-identifiers": [] + }, + "statusActiveEvents": { + "type": "array", + "items": { + "$ref": "#/definitions/statusActiveEvent" + }, + "description": "The list of emerging issues of active event type.", + "x-ms-identifiers": [] + } + } + }, + "statusActiveEvent": { + "type": "object", + "description": "Active event type of emerging issue.", + "properties": { + "title": { + "type": "string", + "description": "The active event title." + }, + "description": { + "type": "string", + "description": "The details of active event." + }, + "trackingId": { + "type": "string", + "description": "The tracking id of this active event." + }, + "startTime": { + "type": "string", + "description": "The impact start time on this active event.", + "format": "date-time" + }, + "cloud": { + "type": "string", + "description": "The cloud type of this active event." + }, + "severity": { + "type": "string", + "description": "The severity level of this active event.", + "enum": [ + "Information", + "Warning", + "Error" + ], + "x-ms-enum": { + "name": "SeverityValues", + "modelAsString": true + } + }, + "stage": { + "type": "string", + "description": "The stage of this active event.", + "enum": [ + "Active", + "Resolve", + "Archived" + ], + "x-ms-enum": { + "name": "StageValues", + "modelAsString": true + } + }, + "published": { + "type": "boolean", + "description": "The boolean value of this active event if published or not." + }, + "lastModifiedTime": { + "type": "string", + "description": "The last time modified on this banner.", + "format": "date-time" + }, + "impacts": { + "type": "array", + "items": { + "$ref": "#/definitions/emergingIssueImpact" + }, + "description": "The list of emerging issues impacts." + } + } + }, + "emergingIssueImpact": { + "type": "object", + "description": "Object of the emerging issue impact on services and regions.", + "properties": { + "id": { + "type": "string", + "description": "The impacted service id." + }, + "name": { + "type": "string", + "description": "The impacted service name." + }, + "regions": { + "type": "array", + "items": { + "$ref": "#/definitions/impactedRegion" + }, + "description": "The list of impacted regions for corresponding emerging issues." + } + } + }, + "ErrorResponse": { + "description": "Error details.", + "type": "object", + "properties": { + "code": { + "description": "The error code.", + "type": "string", + "readOnly": true + }, + "message": { + "description": "The error message.", + "type": "string", + "readOnly": true + }, + "details": { + "description": "The error details.", + "type": "string", + "readOnly": true + } + } + } + }, + "parameters": { + "QueryStartTimeParameter": { + "name": "queryStartTime", + "in": "query", + "required": false, + "type": "string", + "description": "Specifies from when to return events, based on the lastUpdateTime property. For example, queryStartTime = 7/24/2020 OR queryStartTime=7%2F24%2F2020", + "x-ms-parameter-location": "method" + }, + "IssueNameParameter": { + "name": "issueName", + "in": "path", + "description": "The name of the emerging issue.", + "required": true, + "type": "string", + "enum": [ + "default" + ], + "x-ms-enum": { + "name": "IssueNameParameter", + "modelAsString": true + }, + "x-ms-parameter-location": "method" + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group.", + "x-ms-parameter-location": "method" + }, + "FilterParameter": { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN", + "x-ms-parameter-location": "method" + }, + "ExpandParameter": { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "Setting $expand=recommendedactions in url query expands the recommendedactions in the response.", + "x-ms-parameter-location": "method" + }, + "EventTrackingIdParameter": { + "name": "eventTrackingId", + "in": "path", + "required": true, + "type": "string", + "description": "Event Id which uniquely identifies ServiceHealth event.", + "x-ms-parameter-location": "method" + }, + "ImpactedResourceNameParameter": { + "name": "impactedResourceName", + "in": "path", + "description": "Name of the Impacted Resource.", + "required": true, + "type": "string", + "pattern": "^[^*#&+:<>%?]+$", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/AvailabilityStatus_GetByResource.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/AvailabilityStatus_GetByResource.json new file mode 100644 index 000000000000..9cfb21ffc9d2 --- /dev/null +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/AvailabilityStatus_GetByResource.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "resourceUri": "resourceUri", + "api-version": "2022-10-01-preview", + "$expand": "recommendedactions" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/4abcdefgh-ijkl-mnop-qrstuvwxyz/resourceGroups/rhctestenv/providers/Microsoft.ClassicCompute/virtualMachines /rhctestenvV1PI/providers/Microsoft.ResourceHealth/availabilityStatuses/current", + "name": "current", + "type": "Microsoft.ResourceHealth/AvailabilityStatuses", + "location": "eastus", + "properties": { + "availabilityState": "Unavailable", + "title": "Unavailable", + "summary": "We're sorry, we couldn't automatically recover your virtual machine", + "reasonType": "Unplanned", + "context": "Platform Initiated", + "category": "Unplanned", + "reasonChronicity": "Persistent", + "detailedStatus": "Disk problems are preventing us from automatically recovering your virtual machine", + "occuredTime": "2016-03-29T09:12:00Z", + "reportedTime": "2016-05-04T14:11:29.7598931Z", + "rootCauseAttributionTime": "2016-03-29T09:13:00Z", + "resolutionETA": "2016-03-29T09:37:00Z", + "recommendedActions": [ + { + "action": "To start this virtual machine, open the resource blade and click Start", + "actionUrl": "<#ResourceBlade>", + "actionUrlText": "resource blade" + }, + { + "action": "If you are experiencing problems you believe are caused by Azure, contact support", + "actionUrl": "<#SupportCase>", + "actionUrlText": "contact support" + } + ] + } + } + } + } +} diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/AvailabilityStatuses_List.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/AvailabilityStatuses_List.json new file mode 100644 index 000000000000..4b0cec167de6 --- /dev/null +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/AvailabilityStatuses_List.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "resourceUri": "resourceUri", + "api-version": "2022-10-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/4abcdefgh-ijkl-mnop-qrstuvwxyz/resourceGroups/rhctestenv/providers/Microsoft.ClassicCompute/virtualMachines/rhctes tenvV1PI/providers/Microsoft.ResourceHealth/availabilityStatuses/current", + "name": "current", + "type": "Microsoft.ResourceHealth/AvailabilityStatuses", + "location": "eastus", + "properties": { + "availabilityState": "Unavailable", + "title": "Unavailable", + "summary": "We're sorry, we couldn't automatically recover your virtual machine", + "reasonType": "Unplanned", + "context": "Platform Initiated", + "category": "Unplanned", + "reasonChronicity": "Persistent", + "detailedStatus": "Disk problems are preventing us from automatically recovering your virtual machine", + "occuredTime": "2016-03-29T09:12:00Z", + "reportedTime": "2016-05-04T14:11:29.7598931Z", + "rootCauseAttributionTime": "2016-03-29T09:13:00Z", + "resolutionETA": "2016-03-29T09:37:00Z", + "serviceImpactingEvents": [ + { + "eventStartTime": "2016-05-02T19:23:13.7115125Z", + "eventStatusLastModifiedTime": "2016-05-02T19:27:04.9543491Z", + "correlationId": "b56d0180-2d6c-4f7b-b750-c1eca681874c", + "status": { + "value": "Resolved" + }, + "incidentProperties": { + "title": "Virtual Machines - West Europe [West Europe]", + "service": "Virtual Machines", + "region": "East US", + "incidentType": "outage" + } + } + ] + } + }, + { + "id": "/subscriptions/4abcdefgh-ijkl-mnop-qrstuvwxyz/resourceGroups/rhctestenv/providers/Microsoft.ClassicCompute/virtualMachines/rhctes tenvV1PI/providers/Microsoft.ResourceHealth/availabilityStatuses/2016-03-28+16%3a23%3a00Z", + "name": "2016-03-28+16%3a23%3a00Z", + "type": "Microsoft.ResourceHealth/AvailabilityStatuses", + "location": "eastus", + "properties": { + "availabilityState": "Available", + "summary": "This virtual machine is running normally", + "reasonChronicity": "Persistent", + "detailedStatus": "There aren’t any known Azure platform problems affecting this virtual machine", + "occuredTime": "2016-03-28T16:23:00Z" + } + } + ] + } + } + } +} diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/AvailabilityStatuses_ListByResourceGroup.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/AvailabilityStatuses_ListByResourceGroup.json new file mode 100644 index 000000000000..1a15aac04be9 --- /dev/null +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/AvailabilityStatuses_ListByResourceGroup.json @@ -0,0 +1,77 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourceGroupName", + "api-version": "2022-10-01-preview", + "$expand": "recommendedactions" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.ResourceHealth/AvailabilityStatueses/current", + "name": "current", + "type": "Microsoft.ResourceHealth/AvailabilityStatuses", + "location": "eastus", + "properties": { + "availabilityState": "Available", + "title": "Available", + "summary": "Vm is available", + "reasonType": "Unplanned", + "context": "Platform Initiated", + "category": "Unplanned", + "reasonChronicity": "Persistent", + "detailedStatus": "We have not seen any issues with your virtual machine", + "occuredTime": "2016-03-29T09:12:00Z", + "reportedTime": "2016-05-04T14:11:29.7598931Z", + "recentlyResolved": { + "unavailableOccuredTime": "2017-02-28T00:48:00Z", + "resolvedTime": "2017-02-28T00:49:00Z", + "unavailableSummary": "We are sorry your SQL database is unavailable" + }, + "recommendedActions": [ + { + "action": "To start this virtualmachine, open the resource blade and click Start", + "actionUrl": "<#ResourceBlade>", + "actionUrlText": "resourceblade" + } + ] + } + }, + { + "id": "/providers/Microsoft.ResourceHealth/AvailabilityStatueses/current", + "name": "current", + "type": "Microsoft.ResourceHealth/AvailabilityStatuses", + "location": "eastus", + "properties": { + "availabilityState": "Unavailable", + "title": "Unavailable", + "summary": "We are sorry, we couldn't automatically recovery our virtualmachine", + "reasonType": "Unplanned", + "reasonChronicity": "Persistent", + "detailedStatus": "Diskproblemsarepreventingusfromautomaticallyrecoveringyourvirtualmachine", + "occuredTime": "2016-03-29T09:12:00Z", + "reportedTime": "2016-05-04T14:11:29.7598931Z", + "rootCauseAttributionTime": "2016-03-29T09:13:00Z", + "resolutionETA": "2016-03-29T09:37:00Z", + "recommendedActions": [ + { + "action": "To start this virtualmachine, open the resource blade", + "actionUrl": "<#ResourceBlade>", + "actionUrlText": "resourceblade" + }, + { + "action": "If you are experiencing problems you believe are caused by Azure, contact support", + "actionUrl": "<#SupportCase>", + "actionUrlText": "contactsupport" + } + ] + } + } + ], + "nextLink": "{originalRequestUrl}?$skipToken={OpaquePageNumber}" + } + } + } +} diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/AvailabilityStatuses_ListBySubscriptionId.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/AvailabilityStatuses_ListBySubscriptionId.json new file mode 100644 index 000000000000..2f2cac809139 --- /dev/null +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/AvailabilityStatuses_ListBySubscriptionId.json @@ -0,0 +1,76 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "api-version": "2022-10-01-preview", + "$expand": "recommendedactions" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.ResourceHealth/AvailabilityStatueses/current", + "name": "current", + "type": "Microsoft.ResourceHealth/AvailabilityStatuses", + "location": "eastus", + "properties": { + "availabilityState": "Available", + "title": "Available", + "summary": "Vm is available", + "reasonType": "Unplanned", + "reasonChronicity": "Persistent", + "context": "Platform Initiated", + "category": "Unplanned", + "detailedStatus": "We have not seen any issues with your virtual machine", + "occuredTime": "2016-03-29T09:12:00Z", + "reportedTime": "2016-05-04T14:11:29.7598931Z", + "recentlyResolved": { + "unavailableOccuredTime": "2017-02-28T00:48:00Z", + "resolvedTime": "2017-02-28T00:49:00Z", + "unavailableSummary": "We are sorry your SQL database is unavailable" + }, + "recommendedActions": [ + { + "action": "To start this virtualmachine, open the resource blade and click Start", + "actionUrl": "<#ResourceBlade>", + "actionUrlText": "resourceblade" + } + ] + } + }, + { + "id": "/providers/Microsoft.ResourceHealth/AvailabilityStatueses/current", + "name": "current", + "type": "Microsoft.ResourceHealth/AvailabilityStatuses", + "location": "eastus", + "properties": { + "availabilityState": "Unavailable", + "title": "Unavailable", + "summary": "We are sorry, we couldn't automatically recovery our virtualmachine", + "reasonType": "Unplanned", + "reasonChronicity": "Persistent", + "detailedStatus": "Diskproblemsarepreventingusfromautomaticallyrecoveringyourvirtualmachine", + "occuredTime": "2016-03-29T09:12:00Z", + "reportedTime": "2016-05-04T14:11:29.7598931Z", + "rootCauseAttributionTime": "2016-03-29T09:13:00Z", + "resolutionETA": "2016-03-29T09:37:00Z", + "recommendedActions": [ + { + "action": "To start this virtualmachine, open the resource blade", + "actionUrl": "<#ResourceBlade>", + "actionUrlText": "resourceblade" + }, + { + "action": "If you are experiencing problems you believe are caused by Azure, contact support", + "actionUrl": "<#SupportCase>", + "actionUrlText": "contactsupport" + } + ] + } + } + ], + "nextLink": "{originalRequestUrl}?$skipToken={OpaquePageNumber}" + } + } + } +} diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/EmergingIssues_Get.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/EmergingIssues_Get.json new file mode 100644 index 000000000000..6baddcabe607 --- /dev/null +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/EmergingIssues_Get.json @@ -0,0 +1,84 @@ +{ + "parameters": { + "issueName": "default", + "api-version": "2022-10-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.ResourceHealth/emergingissues/default", + "type": "/providers/Microsoft.ResourceHealth/emergingissues", + "name": "default", + "properties": { + "refreshTimestamp": "2019-12-17T09:12:00Z", + "statusBanners": [ + { + "title": "Automatic updates to the dial tone page from ACM - banner", + "message": "Testing backup site", + "cloud": "Public", + "lastModifiedTime": "2019-12-15T08:04:00Z" + }, + { + "title": "Storage - West Europe", + "message": "A subset of customers using Storage in West Europe experienced service availability issues. In addition, resources with dependencies on the impacted storage scale units may have experienced downstream impact in the form of availability issues, connection failures, or high latency. Engineers are investigating the root cause.", + "cloud": "Public", + "lastModifiedTime": "2019-12-15T10:15:00Z" + } + ], + "statusActiveEvents": [ + { + "title": "Automatic updates to the dial tone page from ACM - SHD event", + "description": "Virtual Machines case", + "trackingId": "KTTK-TZ8", + "startTime": "2019-12-15T08:06:00Z", + "cloud": "Public", + "severity": "Information", + "stage": "Active", + "impacts": [ + { + "id": "virtual-machines", + "name": "Virtual Machines", + "regions": [ + { + "id": "us-central", + "name": "Central US" + }, + { + "id": "us-east", + "name": "East US" + } + ] + } + ], + "published": true, + "lastModifiedTime": "2019-12-15T08:10:00Z" + }, + { + "title": "Azure SQL Database - West Europe", + "description": "All Azure SQL service management requests (create, update, delete, etc.) are serviced through the SQL Control Plane infrastructure. Engineers determined that during this issue, the control plane service became unhealthy after receiving a significant increase in internally generated operations and reaching an operational threshold. This led to service management requests becoming unable to complete, which in-turn resulted in timeouts and throttling. Subsequent investigation by engineers determined this issue was due service requests from an internal Azure group that triggered a bug which caused an excessive number of internally generated operations.", + "trackingId": "4KHK-LS8", + "startTime": "2019-12-16T05:11:00Z", + "cloud": "Public", + "severity": "Error", + "stage": "Active", + "impacts": [ + { + "id": "sql-database", + "name": "SQL Database", + "regions": [ + { + "id": "europe-west", + "name": "West Europe" + } + ] + } + ], + "published": true, + "lastModifiedTime": "2019-12-16T05:11:00Z" + } + ] + } + } + } + } +} diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/EmergingIssues_List.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/EmergingIssues_List.json new file mode 100644 index 000000000000..447f1676aae0 --- /dev/null +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/EmergingIssues_List.json @@ -0,0 +1,88 @@ +{ + "parameters": { + "api-version": "2022-10-01-preview" + }, + "responses": { + "200": { + "body": { + "nextLink": "string", + "value": [ + { + "id": "/providers/Microsoft.ResourceHealth/emergingissues/default", + "type": "/providers/Microsoft.ResourceHealth/emergingissues", + "name": "default", + "properties": { + "refreshTimestamp": "2019-12-17T09:12:00Z", + "statusBanners": [ + { + "title": "Automatic updates to the dial tone page from ACM - banner", + "message": "Testing backup site", + "cloud": "Public", + "lastModifiedTime": "2019-12-15T08:04:00Z" + }, + { + "title": "Storage - West Europe", + "message": "A subset of customers using Storage in West Europe experienced service availability issues. In addition, resources with dependencies on the impacted storage scale units may have experienced downstream impact in the form of availability issues, connection failures, or high latency. Engineers are investigating the root cause.", + "cloud": "Public", + "lastModifiedTime": "2019-12-15T10:15:00Z" + } + ], + "statusActiveEvents": [ + { + "title": "Automatic updates to the dial tone page from ACM - SHD event", + "description": "Virtual Machines case", + "trackingId": "KTTK-TZ8", + "startTime": "2019-12-15T08:06:00Z", + "cloud": "Public", + "severity": "Information", + "stage": "Active", + "impacts": [ + { + "id": "virtual-machines", + "name": "Virtual Machines", + "regions": [ + { + "id": "us-central", + "name": "Central US" + }, + { + "id": "us-east", + "name": "East US" + } + ] + } + ], + "published": true, + "lastModifiedTime": "2019-12-15T08:10:00Z" + }, + { + "title": "Azure SQL Database - West Europe", + "description": "All Azure SQL service management requests (create, update, delete, etc.) are serviced through the SQL Control Plane infrastructure. Engineers determined that during this issue, the control plane service became unhealthy after receiving a significant increase in internally generated operations and reaching an operational threshold. This led to service management requests becoming unable to complete, which in-turn resulted in timeouts and throttling. Subsequent investigation by engineers determined this issue was due service requests from an internal Azure group that triggered a bug which caused an excessive number of internally generated operations.", + "trackingId": "4KHK-LS8", + "startTime": "2019-12-16T05:11:00Z", + "cloud": "Public", + "severity": "Error", + "stage": "Active", + "impacts": [ + { + "id": "sql-database", + "name": "SQL Database", + "regions": [ + { + "id": "europe-west", + "name": "West Europe" + } + ] + } + ], + "published": true, + "lastModifiedTime": "2019-12-16T05:11:00Z" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Event_GetBySubscriptionIdAndTrackingId.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Event_GetBySubscriptionIdAndTrackingId.json new file mode 100644 index 000000000000..3eff32c798cc --- /dev/null +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Event_GetBySubscriptionIdAndTrackingId.json @@ -0,0 +1,103 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "eventTrackingId": "eventTrackingId", + "api-version": "2022-10-01-preview", + "$filter": "properties/status eq 'Active'", + "queryStartTime": "7/10/2022" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.ResourceHealth/events/{eventTrackingId}", + "name": "{eventTrackingId}", + "type": "/providers/Microsoft.ResourceHealth/events", + "properties": { + "eventType": "ServiceIssue", + "eventSource": "ResourceHealth", + "status": "Active", + "title": "ACTIVE: Virtual machines in West US", + "summary": "An outage alert is being investigated. More information will be provided as it is known.", + "header": "Your service might have been impacted by an Azure service issue", + "article": { + "articleContent": "An outage alert is being investigated. More information will be provided as it is known" + }, + "links": [ + { + "type": "Hyperlink", + "displayText": { + "value": "Request RCA", + "localizedValue": "Request RCA" + }, + "extensionName": "Microsoft_Azure_Health", + "bladeName": "RequestRCABlade", + "parameters": { + "trackingId": "{eventTrackingId}", + "rcaRequested": "False" + } + }, + { + "type": "Button", + "displayText": { + "value": "Sign up for updates", + "localizedValue": "Sign up for updates" + }, + "extensionName": "Microsoft_Azure_Health", + "bladeName": "AzureHealthBrowseBlade", + "parameters": { + "trackingId": "{eventTrackingId}" + } + } + ], + "level": "Warning", + "eventLevel": "Informational", + "impactStartTime": "2018-11-07T00:00:00Z", + "impactMitigationTime": "2018-11-08T00:00:00Z", + "impact": [ + { + "impactedService": "Virtual Machines", + "impactedRegions": [ + { + "impactedRegion": "West US", + "status": "Active", + "impactedSubscriptions": [ + "{subscriptionId}" + ], + "impactedTenants": [], + "lastUpdateTime": "2017-12-05T21:05:00Z" + } + ] + } + ], + "recommendedActions": { + "message": "Recommended actions title", + "actions": [ + { + "groupId": 23243, + "actionText": "action 1" + }, + { + "groupId": 23432, + "actionText": "action 2" + } + ], + "localeCode": "en" + }, + "faqs": [ + { + "question": "This is a question", + "answer": "This is an answer", + "localeCode": "en" + } + ], + "isHIR": false, + "enableMicrosoftSupport": true, + "enableChatWithUs": false, + "priority": 2, + "lastUpdateTime": "2018-11-08T00:00:00Z", + "hirStage": "resolved" + } + } + } + } +} diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Event_GetByTenantIdAndTrackingId.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Event_GetByTenantIdAndTrackingId.json new file mode 100644 index 000000000000..9daeeaa130a2 --- /dev/null +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Event_GetByTenantIdAndTrackingId.json @@ -0,0 +1,102 @@ +{ + "parameters": { + "eventTrackingId": "eventTrackingId", + "api-version": "2022-10-01-preview", + "$filter": "properties/status eq 'Active'", + "queryStartTime": "7/10/2022" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.ResourceHealth/events/{eventTrackingId}", + "name": "{eventTrackingId}", + "type": "/providers/Microsoft.ResourceHealth/events", + "properties": { + "eventType": "ServiceIssue", + "eventSource": "ResourceHealth", + "status": "Active", + "title": "ACTIVE: Virtual machines in West US", + "summary": "An outage alert is being investigated. More information will be provided as it is known.", + "header": "Your service might have been impacted by an Azure service issue", + "article": { + "articleContent": "An outage alert is being investigated. More information will be provided as it is known" + }, + "links": [ + { + "type": "Hyperlink", + "displayText": { + "value": "Request RCA", + "localizedValue": "Request RCA" + }, + "extensionName": "Microsoft_Azure_Health", + "bladeName": "RequestRCABlade", + "parameters": { + "trackingId": "{eventTrackingId}", + "rcaRequested": "False" + } + }, + { + "type": "Button", + "displayText": { + "value": "Sign up for updates", + "localizedValue": "Sign up for updates" + }, + "extensionName": "Microsoft_Azure_Health", + "bladeName": "AzureHealthBrowseBlade", + "parameters": { + "trackingId": "{eventTrackingId}" + } + } + ], + "level": "Warning", + "eventLevel": "Informational", + "impactStartTime": "2018-11-07T00:00:00Z", + "impactMitigationTime": "2018-11-08T00:00:00Z", + "impact": [ + { + "impactedService": "Virtual Machines", + "impactedRegions": [ + { + "impactedRegion": "West US", + "status": "Active", + "impactedSubscriptions": [], + "impactedTenants": [ + "00000000-0000-0000-0000-000000000000" + ], + "lastUpdateTime": "2017-12-05T21:05:00Z" + } + ] + } + ], + "recommendedActions": { + "message": "Recommended actions title", + "actions": [ + { + "groupId": 23243, + "actionText": "action 1" + }, + { + "groupId": 23432, + "actionText": "action 2" + } + ], + "localeCode": "en" + }, + "faqs": [ + { + "question": "This is a question", + "answer": "This is an answer", + "localeCode": "en" + } + ], + "isHIR": false, + "enableMicrosoftSupport": true, + "enableChatWithUs": false, + "priority": 2, + "lastUpdateTime": "2018-11-08T00:00:00Z", + "hirStage": "resolved" + } + } + } + } +} diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Event_fetchDetailsBySubscriptionIdAndTrackingId.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Event_fetchDetailsBySubscriptionIdAndTrackingId.json new file mode 100644 index 000000000000..6c57fdefab07 --- /dev/null +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Event_fetchDetailsBySubscriptionIdAndTrackingId.json @@ -0,0 +1,101 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "eventTrackingId": "eventTrackingId", + "api-version": "2022-10-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.ResourceHealth/events/{eventTrackingId}", + "name": "{eventTrackingId}", + "type": "/providers/Microsoft.ResourceHealth/events", + "properties": { + "eventType": "ServiceIssue", + "eventSource": "ResourceHealth", + "status": "Active", + "title": "ACTIVE: Virtual machines in West US", + "summary": "An outage alert is being investigated. More information will be provided as it is known.", + "header": "Your service might have been impacted by an Azure service issue", + "article": { + "articleContent": "An outage alert is being investigated. More information will be provided as it is known" + }, + "links": [ + { + "type": "Hyperlink", + "displayText": { + "value": "Request RCA", + "localizedValue": "Request RCA" + }, + "extensionName": "Microsoft_Azure_Health", + "bladeName": "RequestRCABlade", + "parameters": { + "trackingId": "{eventTrackingId}", + "rcaRequested": "False" + } + }, + { + "type": "Button", + "displayText": { + "value": "Sign up for updates", + "localizedValue": "Sign up for updates" + }, + "extensionName": "Microsoft_Azure_Health", + "bladeName": "AzureHealthBrowseBlade", + "parameters": { + "trackingId": "{eventTrackingId}" + } + } + ], + "level": "Warning", + "eventLevel": "Informational", + "impactStartTime": "2018-11-07T00:00:00Z", + "impactMitigationTime": "2018-11-08T00:00:00Z", + "impact": [ + { + "impactedService": "Virtual Machines", + "impactedRegions": [ + { + "impactedRegion": "West US", + "status": "Active", + "impactedSubscriptions": [ + "{subscriptionId}" + ], + "impactedTenants": [], + "lastUpdateTime": "2017-12-05T21:05:00Z" + } + ] + } + ], + "recommendedActions": { + "message": "Recommended actions title", + "actions": [ + { + "groupId": 23243, + "actionText": "action 1" + }, + { + "groupId": 23432, + "actionText": "action 2" + } + ], + "localeCode": "en" + }, + "faqs": [ + { + "question": "This is a question", + "answer": "This is an answer", + "localeCode": "en" + } + ], + "isHIR": false, + "enableMicrosoftSupport": true, + "enableChatWithUs": false, + "priority": 2, + "lastUpdateTime": "2018-11-08T00:00:00Z", + "hirStage": "resolved" + } + } + } + } +} diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Event_fetchDetailsByTenantIdAndTrackingId.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Event_fetchDetailsByTenantIdAndTrackingId.json new file mode 100644 index 000000000000..f295dc51f913 --- /dev/null +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Event_fetchDetailsByTenantIdAndTrackingId.json @@ -0,0 +1,100 @@ +{ + "parameters": { + "eventTrackingId": "eventTrackingId", + "api-version": "2022-10-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.ResourceHealth/events/{eventTrackingId}", + "name": "{eventTrackingId}", + "type": "/providers/Microsoft.ResourceHealth/events", + "properties": { + "eventType": "ServiceIssue", + "eventSource": "ResourceHealth", + "status": "Active", + "title": "ACTIVE: Virtual machines in West US", + "summary": "An outage alert is being investigated. More information will be provided as it is known.", + "header": "Your service might have been impacted by an Azure service issue", + "article": { + "articleContent": "An outage alert is being investigated. More information will be provided as it is known" + }, + "links": [ + { + "type": "Hyperlink", + "displayText": { + "value": "Request RCA", + "localizedValue": "Request RCA" + }, + "extensionName": "Microsoft_Azure_Health", + "bladeName": "RequestRCABlade", + "parameters": { + "trackingId": "{eventTrackingId}", + "rcaRequested": "False" + } + }, + { + "type": "Button", + "displayText": { + "value": "Sign up for updates", + "localizedValue": "Sign up for updates" + }, + "extensionName": "Microsoft_Azure_Health", + "bladeName": "AzureHealthBrowseBlade", + "parameters": { + "trackingId": "{eventTrackingId}" + } + } + ], + "level": "Warning", + "eventLevel": "Informational", + "impactStartTime": "2018-11-07T00:00:00Z", + "impactMitigationTime": "2018-11-08T00:00:00Z", + "impact": [ + { + "impactedService": "Virtual Machines", + "impactedRegions": [ + { + "impactedRegion": "West US", + "status": "Active", + "impactedSubscriptions": [], + "impactedTenants": [ + "00000000-0000-0000-0000-000000000000" + ], + "lastUpdateTime": "2017-12-05T21:05:00Z" + } + ] + } + ], + "recommendedActions": { + "message": "Recommended actions title", + "actions": [ + { + "groupId": 23243, + "actionText": "action 1" + }, + { + "groupId": 23432, + "actionText": "action 2" + } + ], + "localeCode": "en" + }, + "faqs": [ + { + "question": "This is a question", + "answer": "This is an answer", + "localeCode": "en" + } + ], + "isHIR": false, + "enableMicrosoftSupport": true, + "enableChatWithUs": false, + "priority": 2, + "lastUpdateTime": "2018-11-08T00:00:00Z", + "hirStage": "resolved" + } + } + } + } +} diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Events_ListBySingleResource.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Events_ListBySingleResource.json new file mode 100644 index 000000000000..86c9a831891e --- /dev/null +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Events_ListBySingleResource.json @@ -0,0 +1,104 @@ +{ + "parameters": { + "resourceUri": "subscriptions/4abcdefgh-ijkl-mnop-qrstuvwxyz/resourceGroups/rhctestenv/providers/Microsoft.Compute/virtualMachines/rhctestenvV1PI", + "api-version": "2022-10-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.ResourceHealth/events/BC_1-FXZ", + "name": "BC_1-FXZ", + "type": "/providers/Microsoft.ResourceHealth/events", + "properties": { + "eventType": "ServiceIssue", + "eventSource": "ResourceHealth", + "status": "Active", + "title": "ACTIVE: Virtual machines in West US", + "summary": "An outage alert is being investigated. More information will be provided as it is known.", + "header": "Your service might have been impacted by an Azure service issue", + "article": { + "articleContent": "An outage alert is being investigated. More information will be provided as it is known" + }, + "links": [ + { + "type": "Hyperlink", + "displayText": { + "value": "Request RCA", + "localizedValue": "Request RCA" + }, + "extensionName": "Microsoft_Azure_Health", + "bladeName": "RequestRCABlade", + "parameters": { + "trackingId": "BC_1-FXZ", + "rcaRequested": "False" + } + }, + { + "type": "Button", + "displayText": { + "value": "Sign up for updates", + "localizedValue": "Sign up for updates" + }, + "extensionName": "Microsoft_Azure_Health", + "bladeName": "AzureHealthBrowseBlade", + "parameters": { + "trackingId": "BC_1-FXZ" + } + } + ], + "level": "Warning", + "eventLevel": "Informational", + "impactStartTime": "2018-11-07T00:00:00Z", + "impactMitigationTime": "2018-11-08T00:00:00Z", + "impact": [ + { + "impactedService": "Virtual Machines", + "impactedRegions": [ + { + "impactedRegion": "West US", + "status": "Active", + "impactedSubscriptions": [ + "{subscriptionId}" + ], + "lastUpdateTime": "2017-12-05T21:05:00Z" + } + ] + } + ], + "recommendedActions": { + "message": "Recommended actions title", + "actions": [ + { + "groupId": 23243, + "actionText": "action 1" + }, + { + "groupId": 23432, + "actionText": "action 2" + } + ], + "localeCode": "en" + }, + "faqs": [ + { + "question": "This is a question", + "answer": "This is an answer", + "localeCode": "en" + } + ], + "isHIR": false, + "enableMicrosoftSupport": true, + "enableChatWithUs": false, + "priority": 2, + "lastUpdateTime": "2018-11-08T00:00:00Z", + "hirStage": "active" + } + } + ], + "nextLink": "{originalRequestUrl}?$skipToken={OpaquePageNumber}" + } + } + } +} diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Events_ListBySubscriptionId.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Events_ListBySubscriptionId.json new file mode 100644 index 000000000000..101b074a2051 --- /dev/null +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Events_ListBySubscriptionId.json @@ -0,0 +1,107 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "api-version": "2022-10-01-preview", + "$filter": "service eq 'Virtual Machines' or region eq 'West US'", + "queryStartTime": "7/24/2020" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.ResourceHealth/events/BC_1-FXZ", + "name": "BC_1-FXZ", + "type": "/providers/Microsoft.ResourceHealth/events", + "properties": { + "eventType": "ServiceIssue", + "eventSource": "ResourceHealth", + "status": "Active", + "title": "ACTIVE: Virtual machines in West US", + "summary": "An outage alert is being investigated. More information will be provided as it is known.", + "header": "Your service might have been impacted by an Azure service issue", + "article": { + "articleContent": "An outage alert is being investigated. More information will be provided as it is known" + }, + "links": [ + { + "type": "Hyperlink", + "displayText": { + "value": "Request RCA", + "localizedValue": "Request RCA" + }, + "extensionName": "Microsoft_Azure_Health", + "bladeName": "RequestRCABlade", + "parameters": { + "trackingId": "BC_1-FXZ", + "rcaRequested": "False" + } + }, + { + "type": "Button", + "displayText": { + "value": "Sign up for updates", + "localizedValue": "Sign up for updates" + }, + "extensionName": "Microsoft_Azure_Health", + "bladeName": "AzureHealthBrowseBlade", + "parameters": { + "trackingId": "BC_1-FXZ" + } + } + ], + "level": "Warning", + "eventLevel": "Informational", + "impactStartTime": "2018-11-07T00:00:00Z", + "impactMitigationTime": "2018-11-08T00:00:00Z", + "impact": [ + { + "impactedService": "Virtual Machines", + "impactedRegions": [ + { + "impactedRegion": "West US", + "status": "Active", + "impactedSubscriptions": [ + "{subscriptionId}" + ], + "impactedTenants": [], + "lastUpdateTime": "2017-12-05T21:05:00Z" + } + ] + } + ], + "recommendedActions": { + "message": "Recommended actions title", + "actions": [ + { + "groupId": 23243, + "actionText": "action 1" + }, + { + "groupId": 23432, + "actionText": "action 2" + } + ], + "localeCode": "en" + }, + "faqs": [ + { + "question": "This is a question", + "answer": "This is an answer", + "localeCode": "en" + } + ], + "isHIR": false, + "enableMicrosoftSupport": true, + "enableChatWithUs": false, + "priority": 2, + "lastUpdateTime": "2018-11-08T00:00:00Z", + "hirStage": "resolved" + } + } + ], + "nextLink": "{originalRequestUrl}?$skipToken={OpaquePageNumber}" + } + } + } +} diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Events_ListByTenantId.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Events_ListByTenantId.json new file mode 100644 index 000000000000..18e8e8f3dd59 --- /dev/null +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Events_ListByTenantId.json @@ -0,0 +1,106 @@ +{ + "parameters": { + "api-version": "2022-10-01-preview", + "$filter": "service eq 'Virtual Machines' or region eq 'West US'", + "queryStartTime": "7/24/2020" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.ResourceHealth/events/BC_1-FXZ", + "name": "BC_1-FXZ", + "type": "/providers/Microsoft.ResourceHealth/events", + "properties": { + "eventType": "ServiceIssue", + "eventSource": "ServiceHealth", + "status": "Active", + "title": "ACTIVE: Virtual machines in West US", + "summary": "An outage alert is being investigated. More information will be provided as it is known.", + "header": "Your service might have been impacted by an Azure service issue", + "article": { + "articleContent": "An outage alert is being investigated. More information will be provided as it is known" + }, + "links": [ + { + "type": "Hyperlink", + "displayText": { + "value": "Request RCA", + "localizedValue": "Request RCA" + }, + "extensionName": "Microsoft_Azure_Health", + "bladeName": "RequestRCABlade", + "parameters": { + "trackingId": "BC_1-FXZ", + "rcaRequested": "False" + } + }, + { + "type": "Button", + "displayText": { + "value": "Sign up for updates", + "localizedValue": "Sign up for updates" + }, + "extensionName": "Microsoft_Azure_Health", + "bladeName": "AzureHealthBrowseBlade", + "parameters": { + "trackingId": "BC_1-FXZ" + } + } + ], + "level": "Warning", + "eventLevel": "Informational", + "impactStartTime": "2018-11-07T00:00:00Z", + "impactMitigationTime": "2018-11-08T00:00:00Z", + "impact": [ + { + "impactedService": "Virtual Machines", + "impactedRegions": [ + { + "impactedRegion": "West US", + "status": "Active", + "impactedSubscriptions": [], + "impactedTenants": [ + "00000000-0000-0000-0000-000000000000" + ], + "lastUpdateTime": "2017-12-05T21:05:00Z" + } + ] + } + ], + "recommendedActions": { + "message": "Recommended actions title", + "actions": [ + { + "groupId": 23243, + "actionText": "action 1" + }, + { + "groupId": 23432, + "actionText": "action 2" + } + ], + "localeCode": "en" + }, + "faqs": [ + { + "question": "This is a question", + "answer": "This is an answer", + "localeCode": "en" + } + ], + "isHIR": false, + "enableMicrosoftSupport": true, + "enableChatWithUs": false, + "priority": 2, + "lastUpdateTime": "2018-11-08T00:00:00Z", + "hirStage": "resolved" + } + } + ], + "nextLink": "{originalRequestUrl}?$skipToken={OpaquePageNumber}" + } + } + } +} diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ImpactedResources_Get.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ImpactedResources_Get.json new file mode 100644 index 000000000000..6ba11fb3b685 --- /dev/null +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ImpactedResources_Get.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "eventTrackingId": "BC_1-FXZ", + "impactedResourceName": "abc-123-ghj-456", + "api-version": "2022-10-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscripitionId}/providers/Microsoft.ResourceHealth/events/BC_1-FXZ/impactedResources/abc-123-ghj-456", + "name": "abc-123-ghj-456", + "type": "Microsoft.ResourceHealth/events/impactedResources", + "properties": { + "targetResourceType": "Microsoft.Compute/VirtualMachines", + "targetResourceId": "/subscriptions/4970d23e-ed41-4670-9c19-02a1d2808dd9/resourceGroups/TEST/providers/Microsoft.Compute/virtualMachines/testvm", + "targetRegion": "westus" + } + } + } + } +} diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ImpactedResources_GetByTenantId.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ImpactedResources_GetByTenantId.json new file mode 100644 index 000000000000..22583f13829f --- /dev/null +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ImpactedResources_GetByTenantId.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "eventTrackingId": "BC_1-FXZ", + "impactedResourceName": "abc-123-ghj-456", + "api-version": "2022-10-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "providers/Microsoft.ResourceHealth/events/BC_1-FXZ/impactedResources/abc-123-ghj-456", + "name": "abc-123-ghj-456", + "type": "Microsoft.ResourceHealth/events/impactedResources", + "properties": { + "targetResourceType": "Microsoft.Compute/VirtualMachines", + "targetResourceId": "{resourceId}", + "targetRegion": "westus" + } + } + } + } +} diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ImpactedResources_ListBySubscriptionId_ListByEventId.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ImpactedResources_ListBySubscriptionId_ListByEventId.json new file mode 100644 index 000000000000..3000875fbb88 --- /dev/null +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ImpactedResources_ListBySubscriptionId_ListByEventId.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "eventTrackingId": "BC_1-FXZ", + "api-version": "2022-10-01-preview", + "$filter": "targetRegion eq 'westus'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/{subscripitionId}/providers/Microsoft.ResourceHealth/events/BC_1-FXZ/impactedResources/abc-123-ghj-456", + "name": "abc-123-ghj-456", + "type": "Microsoft.ResourceHealth/events/impactedResources", + "properties": { + "targetResourceType": "Microsoft.Compute/VirtualMachines", + "targetResourceId": "/subscriptions/4970d23e-ed41-4670-9c19-02a1d2808dd9/resourceGroups/TEST/providers/Microsoft.Compute/virtualMachines/testvm", + "targetRegion": "westus" + } + }, + { + "id": "/subscriptions/{subscripitionId}/providers/Microsoft.ResourceHealth/events/BC_1-FXZ/impactedResources/jkl-901-hgy-445", + "name": "jkl-901-hgy-445", + "type": "Microsoft.ResourceHealth/events/impactedResources", + "properties": { + "info": [ + { + "key": "ContainerGrp", + "value": "xyz" + }, + { + "key": "UserGuid", + "value": "guid" + }, + { + "key": "AplicationID", + "value": "Abc" + }, + { + "key": "UserPrincipalObjectId", + "value": "def" + } + ] + } + }, + { + "id": "/subscriptions/{subscripitionId}/providers/Microsoft.ResourceHealth/events/BC_1-FXZ/impactedResources/wer-345-tyu-789", + "name": "wer-345-tyu-789", + "type": "Microsoft.ResourceHealth/events/impactedResources", + "properties": { + "targetResourceType": "Microsoft.Compute/VirtualMachines", + "targetResourceId": "/subscriptions/4970d23e-ed41-4670-9c19-02a1d2808dd9/resourceGroups/Dev2/providers/Microsoft.Compute/virtualMachines/testvm2", + "targetRegion": "westus" + } + } + ], + "nextLink": "{originalRequestUrl}?$skipToken={OpaquePageNumber}" + } + } + } +} diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ImpactedResources_ListByTenantId_ListByEventId.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ImpactedResources_ListByTenantId_ListByEventId.json new file mode 100644 index 000000000000..f2712e8edc5b --- /dev/null +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ImpactedResources_ListByTenantId_ListByEventId.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "eventTrackingId": "BC_1-FXZ", + "api-version": "2022-10-01-preview", + "$filter": "targetRegion eq 'westus'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.ResourceHealth/events/BC_1-FXZ/impactedResources/abc-123-ghj-456", + "name": "abc-123-ghj-456", + "type": "Microsoft.ResourceHealth/events/impactedResources", + "properties": { + "targetResourceType": "Microsoft.Compute/VirtualMachines", + "targetResourceId": "{resourceId-1}", + "targetRegion": "westus" + } + }, + { + "id": "/providers/Microsoft.ResourceHealth/events/BC_1-FXZ/impactedResources/wer-345-tyu-789", + "name": "wer-345-tyu-789", + "type": "Microsoft.ResourceHealth/events/impactedResources", + "properties": { + "targetResourceType": "Microsoft.Compute/VirtualMachines", + "targetResourceId": "{resourceId-2}", + "targetRegion": "westus" + } + } + ], + "nextLink": "{originalRequestUrl}?$skipToken={OpaquePageNumber}" + } + } + } +} diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Metadata_GetEntity.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Metadata_GetEntity.json new file mode 100644 index 000000000000..79ff76701198 --- /dev/null +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Metadata_GetEntity.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "name": "status", + "api-version": "2022-10-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.ResourceHealth/metadata/status", + "type": "Microsoft.ResourceHealth/metadata", + "name": "status", + "properties": { + "displayName": "Status", + "applicableScenarios": [ + "Alerts" + ], + "supportedValues": [ + { + "id": "Active", + "displayName": "Active" + }, + { + "id": "Resolved", + "displayName": "Resolved" + }, + { + "id": "In Progress", + "displayName": "In Progress" + }, + { + "id": "Updated", + "displayName": "Updated" + } + ] + } + } + } + } +} diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Metadata_List.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Metadata_List.json new file mode 100644 index 000000000000..22f7914d0007 --- /dev/null +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Metadata_List.json @@ -0,0 +1,1945 @@ +{ + "parameters": { + "api-version": "2022-10-01-preview" + }, + "responses": { + "200": { + "body": { + "nextLink": "string", + "value": [ + { + "id": "/providers/Microsoft.ResourceHealth/metadata/status", + "type": "Microsoft.ResourceHealth/metadata", + "name": "status", + "properties": { + "displayName": "Status", + "applicableScenarios": [ + "Alerts" + ], + "supportedValues": [ + { + "id": "Active", + "displayName": "Active" + }, + { + "id": "Resolved", + "displayName": "Resolved" + }, + { + "id": "In Progress", + "displayName": "In Progress" + }, + { + "id": "Updated", + "displayName": "Updated" + } + ] + } + }, + { + "id": "/providers/Microsoft.ResourceHealth/metadata/level", + "type": "Microsoft.ResourceHealth/metadata", + "name": "level", + "properties": { + "displayName": "Level", + "applicableScenarios": [ + "Alerts" + ], + "supportedValues": [ + { + "id": "Informational", + "displayName": "Informational" + }, + { + "id": "Critical", + "displayName": "Critical" + } + ] + } + }, + { + "id": "/providers/Microsoft.ResourceHealth/metadata/cause", + "type": "Microsoft.ResourceHealth/metadata", + "name": "cause", + "properties": { + "displayName": "Cause", + "applicableScenarios": [ + "Alerts" + ], + "supportedValues": [ + { + "id": "PlatformInitiated", + "displayName": "Platform Initiated" + }, + { + "id": "UserInitiated", + "displayName": "User Initiated" + }, + { + "id": "Unknown", + "displayName": "Unknown" + } + ] + } + }, + { + "id": "/providers/Microsoft.ResourceHealth/metadata/previousHealthStatus", + "type": "Microsoft.ResourceHealth/metadata", + "name": "previousHealthStatus", + "properties": { + "displayName": "Previous Health Status", + "applicableScenarios": [ + "Alerts" + ], + "supportedValues": [ + { + "id": "Available", + "displayName": "Available" + }, + { + "id": "Unavailable", + "displayName": "Unavailable" + }, + { + "id": "Degraded", + "displayName": "Degraded" + }, + { + "id": "Unknown", + "displayName": "Unknown" + } + ] + } + }, + { + "id": "/providers/Microsoft.ResourceHealth/metadata/currentHealthStatus", + "type": "Microsoft.ResourceHealth/metadata", + "name": "currentHealthStatus", + "properties": { + "displayName": "Current Health Status", + "applicableScenarios": [ + "Alerts" + ], + "supportedValues": [ + { + "id": "Available", + "displayName": "Available" + }, + { + "id": "Unavailable", + "displayName": "Unavailable" + }, + { + "id": "Degraded", + "displayName": "Degraded" + }, + { + "id": "Unknown", + "displayName": "Unknown" + } + ] + } + }, + { + "id": "/providers/Microsoft.ResourceHealth/metadata/supportedResourceType", + "type": "Microsoft.ResourceHealth/metadata", + "name": "supportedResourceType", + "properties": { + "displayName": "Supported Resource Type", + "supportedValues": [ + { + "id": "Microsoft.AnalysisServices/servers", + "displayName": "Analysis Services" + }, + { + "id": "Microsoft.ApiManagement/service", + "displayName": "API Management service" + }, + { + "id": "Microsoft.AppPlatform/Spring", + "displayName": "Microsoft.AppPlatform/Spring" + }, + { + "id": "Microsoft.Kusto/Clusters", + "displayName": "Azure Data Explorer Cluster" + }, + { + "id": "Microsoft.Kusto/clusters/databases/dataconnections", + "displayName": "Azure Data Explorer Data Connection" + }, + { + "id": "microsoft.fluidrelay/fluidrelayservers", + "displayName": "microsoft.fluidrelay/fluidrelayservers" + }, + { + "id": "microsoft.ContainerService/managedClusters", + "displayName": "AKS cluster" + }, + { + "id": "Microsoft.Dashboard/grafana", + "displayName": "Microsoft.Dashboard/grafana" + }, + { + "id": "Microsoft.Purview/accounts", + "displayName": "Azure Purview" + }, + { + "id": "Microsoft.SignalRService/SignalR", + "displayName": "Microsoft.SignalRService/SignalR" + }, + { + "id": "Microsoft.SignalRService/WebPubSub", + "displayName": "Microsoft.SignalRService/WebPubSub" + }, + { + "id": "Microsoft.Batch/batchAccounts", + "displayName": "Batch account" + }, + { + "id": "Microsoft.Cache/Redis", + "displayName": "Redis cache" + }, + { + "id": "Microsoft.Cdn/profiles", + "displayName": "Cdn profile" + }, + { + "id": "Microsoft.ClassicCompute/DomainNames", + "displayName": "Cloud services (classic)" + }, + { + "id": "Microsoft.ClassicCompute/virtualMachines", + "displayName": "Virtual machine (classic)" + }, + { + "id": "Microsoft.CognitiveServices/accounts", + "displayName": "Cognitive Services account" + }, + { + "id": "Microsoft.Compute/hostGroups/hosts", + "displayName": "Azure Dedicated Host" + }, + { + "id": "Microsoft.Compute/virtualMachines", + "displayName": "Virtual machine" + }, + { + "id": "Microsoft.Compute/virtualMachineScaleSets", + "displayName": "Virtual machine scale sets" + }, + { + "id": "microsoft.connectedvmwarevsphere/vcenters", + "displayName": "microsoft.connectedvmwarevsphere/vcenters" + }, + { + "id": "Microsoft.DataFactory/factories", + "displayName": "Data factory" + }, + { + "id": "Microsoft.DataLakeAnalytics/accounts", + "displayName": "Data Lake Analytics account" + }, + { + "id": "Microsoft.DataLakeStore/accounts", + "displayName": "Data Lake Store account" + }, + { + "id": "Microsoft.DataMigration/services", + "displayName": "Azure Database Migration Service" + }, + { + "id": "Microsoft.DataProtection/BackupVaults", + "displayName": "Microsoft.DataProtection/BackupVaults" + }, + { + "id": "Microsoft.DataShare/accounts", + "displayName": "Azure Data Share account" + }, + { + "id": "Microsoft.DBforMariaDB/servers", + "displayName": "Azure Database for MariaDB servers" + }, + { + "id": "Microsoft.DBforMySQL/flexibleServers", + "displayName": "Azure Database for MySQL flexible servers" + }, + { + "id": "Microsoft.DBforMySQL/servers", + "displayName": "Azure Database for MySQL servers" + }, + { + "id": "Microsoft.DBforPostgreSQL/flexibleservers", + "displayName": "Azure Database for PostgreSQL Flexible Server" + }, + { + "id": "Microsoft.DBforPostgreSQL/servers", + "displayName": "Azure Database for PostgreSQL servers" + }, + { + "id": "Microsoft.DBforPostgreSQL/serverGroupsv2", + "displayName": "Microsoft.DBforPostgreSQL/serverGroupsv2" + }, + { + "id": "Microsoft.Devices/IotHubs", + "displayName": "IoT Hub" + }, + { + "id": "Microsoft.DigitalTwins/DigitalTwinsInstances", + "displayName": "Azure Digital Twins" + }, + { + "id": "Microsoft.Documentdb/databaseaccounts", + "displayName": "Cosmos DB" + }, + { + "id": "Microsoft.EventHub/namespaces", + "displayName": "Event Hub" + }, + { + "id": "Microsoft.ExtendedLocation/customLocations", + "displayName": "Microsoft.ExtendedLocation/customLocations" + }, + { + "id": "Microsoft.HdInsight/clusters", + "displayName": "HDInsight clusters" + }, + { + "id": "Microsoft.HybridCompute/machines", + "displayName": "Azure Arc enabled servers" + }, + { + "id": "Microsoft.HybridNetwork/devices", + "displayName": "Microsoft.HybridNetwork/devices" + }, + { + "id": "Microsoft.HybridNetwork/networkFunctions", + "displayName": "Microsoft.HybridNetwork/networkFunctions" + }, + { + "id": "Microsoft.IoTCentral/IoTApps", + "displayName": "IoT Central Application" + }, + { + "id": "Microsoft.KeyVault/vaults", + "displayName": "Key vault" + }, + { + "id": "Microsoft.Kubernetes/connectedClusters", + "displayName": "Azure Arc enabled Kubernetes" + }, + { + "id": "Microsoft.MachineLearning/webServices", + "displayName": "Machine Learning Studio web services" + }, + { + "id": "Microsoft.media/mediaservices", + "displayName": "Media service" + }, + { + "id": "Microsoft.Network/applicationGateways", + "displayName": "Application Gateway" + }, + { + "id": "Microsoft.Network/bastionHosts", + "displayName": "Microsoft.Network/bastionHosts" + }, + { + "id": "Microsoft.Network/Connections", + "displayName": "VPN Connection" + }, + { + "id": "Microsoft.Network/dnsResolvers/inboundEndpoints", + "displayName": "Microsoft.Network/dnsResolvers/inboundEndpoints" + }, + { + "id": "Microsoft.Network/dnsResolvers", + "displayName": "Microsoft.Network/dnsResolvers" + }, + { + "id": "Microsoft.Network/dnsResolvers/outboundEndpoints", + "displayName": "Microsoft.Network/dnsResolvers/outboundEndpoints" + }, + { + "id": "Microsoft.Network/dnszones", + "displayName": "Microsoft.Network/dnszones" + }, + { + "id": "Microsoft.Network/expressRouteCircuits", + "displayName": "ExpressRoute circuit" + }, + { + "id": "Microsoft.Network/ExpressRouteGateways", + "displayName": "Express RouteGateways" + }, + { + "id": "Microsoft.Network/frontdoors", + "displayName": "Front Door" + }, + { + "id": "Microsoft.Network/LoadBalancers", + "displayName": "Load balancer" + }, + { + "id": "Microsoft.Network/NATGateways", + "displayName": "Microsoft.Network/NATGateways" + }, + { + "id": "Microsoft.Network/trafficmanagerprofiles", + "displayName": "Traffic Manager profile" + }, + { + "id": "Microsoft.Network/virtualNetworkGateways", + "displayName": "VPN Gateway" + }, + { + "id": "Microsoft.NotificationHubs/Namespaces", + "displayName": "Notification Hub namespace" + }, + { + "id": "Microsoft.OperationalInsights/workspaces", + "displayName": "Log Analytics workspace" + }, + { + "id": "Microsoft.PowerBIDedicated/capacities", + "displayName": "Power BI Embedded" + }, + { + "id": "Microsoft.RecoveryServices/vaults", + "displayName": "Microsoft.RecoveryServices/vaults" + }, + { + "id": "Microsoft.ResourceConnector/appliances", + "displayName": "Microsoft.ResourceConnector/appliances" + }, + { + "id": "Microsoft.Search/searchServices", + "displayName": "Search service" + }, + { + "id": "Microsoft.ServiceBus/namespaces", + "displayName": "Service Bus" + }, + { + "id": "Microsoft.ServiceFabric/clusters", + "displayName": "Service Fabric cluster" + }, + { + "id": "Microsoft.ServiceFabric/managedClusters", + "displayName": "Microsoft.ServiceFabric/managedClusters" + }, + { + "id": "Microsoft.Sql/managedInstances/databases", + "displayName": "Managed database" + }, + { + "id": "Microsoft.Sql/managedInstances", + "displayName": "Managed instance" + }, + { + "id": "Microsoft.Sql/servers/databases", + "displayName": "SQL database" + }, + { + "id": "Microsoft.Storage/storageAccounts", + "displayName": "Storage account" + }, + { + "id": "Microsoft.StorageCache/caches", + "displayName": "Microsoft.StorageCache/caches" + }, + { + "id": "Microsoft.StreamAnalytics/streamingjobs", + "displayName": "Stream Analytics job" + }, + { + "id": "Microsoft.Synapse/workspaces", + "displayName": "Microsoft.Synapse/workspaces" + }, + { + "id": "Microsoft.Web/serverFarms", + "displayName": "App Service plan" + }, + { + "id": "Microsoft.Web/sites", + "displayName": "Website" + } + ] + } + }, + { + "id": "/providers/Microsoft.ResourceHealth/metadata/supportedEventTypes", + "type": "Microsoft.ResourceHealth/metadata", + "name": "supportedEventTypes", + "properties": { + "displayName": "Supported Service Health Event Types", + "supportedValues": [ + { + "id": "Maintenance", + "displayName": "Planned Maintenance" + }, + { + "id": "Informational", + "displayName": "Health Advisories" + }, + { + "id": "Security", + "displayName": "Security Advisories" + }, + { + "id": "ActionRequired", + "displayName": "Health Advisories" + }, + { + "id": "Incident", + "displayName": "Service Issue" + } + ] + } + }, + { + "id": "/providers/Microsoft.ResourceHealth/metadata/supportedServices", + "type": "Microsoft.ResourceHealth/metadata", + "name": "supportedServices", + "properties": { + "displayName": "Supported Service Health Services", + "supportedValues": [ + { + "id": "API Management", + "displayName": "API Management", + "resourceTypes": [ + "microsoft.apimanagement/service" + ] + }, + { + "id": "Action Groups", + "displayName": "Action Groups", + "resourceTypes": [ + "microsoft.insights/actiongroups", + "microsoft.alertsmanagement/alerts" + ] + }, + { + "id": "Activity Logs & Alerts", + "displayName": "Activity Logs & Alerts", + "resourceTypes": [ + "microsoft.insights/alertrules", + "microsoft.insights/activitylogalerts", + "microsoft.alertsmanagement/alerts" + ] + }, + { + "id": "Advisor", + "displayName": "Advisor", + "resourceTypes": [] + }, + { + "id": "Alerts", + "displayName": "Alerts", + "resourceTypes": [ + "microsoft.insights/alertrules", + "microsoft.insights/activitylogalerts", + "microsoft.insights/metricalerts", + "microsoft.insights/scheduledqueryrules", + "microsoft.insights/actiongroups", + "microsoft.alertsmanagement/alerts", + "microsoft.alertsmanagement/actionrules", + "microsoft.alertsmanagement/smartdetectoralertrules" + ] + }, + { + "id": "Alerts & Metrics", + "displayName": "Alerts & Metrics", + "resourceTypes": [ + "microsoft.insights/alertrules", + "microsoft.insights/metricalerts", + "microsoft.alertsmanagement/alerts" + ] + }, + { + "id": "App Service", + "displayName": "App Service", + "resourceTypes": [ + "microsoft.web/sites" + ] + }, + { + "id": "App Service (Linux)", + "displayName": "App Service (Linux)", + "resourceTypes": [ + "microsoft.web/sites" + ] + }, + { + "id": "App Service (Linux) \\ Web App for Containers", + "displayName": "App Service (Linux) \\ Web App for Containers", + "resourceTypes": [ + "microsoft.web/sites" + ] + }, + { + "id": "App Service (Linux) \\ Web Apps", + "displayName": "App Service (Linux) \\ Web Apps", + "resourceTypes": [ + "microsoft.web/sites" + ] + }, + { + "id": "App Service \\ Web Apps", + "displayName": "App Service \\ Web Apps", + "resourceTypes": [ + "microsoft.web/sites" + ] + }, + { + "id": "Application Gateway", + "displayName": "Application Gateway", + "resourceTypes": [ + "microsoft.network/applicationgateways" + ] + }, + { + "id": "Application Insights", + "displayName": "Application Insights", + "resourceTypes": [ + "microsoft.insights/components" + ] + }, + { + "id": "AutoScale", + "displayName": "AutoScale", + "resourceTypes": [ + "microsoft.insights/autoscalesettings" + ] + }, + { + "id": "Automation", + "displayName": "Automation", + "resourceTypes": [ + "microsoft.automation/automationaccounts", + "microsoft.automation/automationaccounts/runbooks", + "microsoft.automation/automationaccounts/jobs" + ] + }, + { + "id": "Azure Active Directory", + "displayName": "Azure Active Directory", + "resourceTypes": [] + }, + { + "id": "Azure Active Directory B2C", + "displayName": "Azure Active Directory B2C", + "resourceTypes": [] + }, + { + "id": "Azure Active Directory Domain Services", + "displayName": "Azure Active Directory Domain Services", + "resourceTypes": [ + "microsoft.aad/domainservices" + ] + }, + { + "id": "Azure Active Directory \\ Enterprise State Roaming", + "displayName": "Azure Active Directory \\ Enterprise State Roaming", + "resourceTypes": [] + }, + { + "id": "Azure Analysis Services", + "displayName": "Azure Analysis Services", + "resourceTypes": [ + "microsoft.analysisservices/servers" + ] + }, + { + "id": "Azure API for FHIR", + "displayName": "Azure API for FHIR", + "resourceTypes": [ + "Microsoft.HealthcareApis/services" + ] + }, + { + "id": "Azure App Configuration", + "displayName": "Azure App Configuration", + "resourceTypes": [] + }, + { + "id": "Azure Applied AI Services", + "displayName": "Azure Applied AI Services", + "resourceTypes": [] + }, + { + "id": "Azure Arc enabled Kubernetes", + "displayName": "Azure Arc enabled Kubernetes", + "resourceTypes": [ + "microsoft.kubernetes/connectedclusters" + ] + }, + { + "id": "Azure Arc enabled data services", + "displayName": "Azure Arc enabled data services", + "resourceTypes": [] + }, + { + "id": "Azure Arc enabled servers", + "displayName": "Azure Arc enabled servers", + "resourceTypes": [ + "microsoft.hybridcompute/machines" + ] + }, + { + "id": "Azure Bastion", + "displayName": "Azure Bastion", + "resourceTypes": [ + "microsoft.network/bastionhosts" + ] + }, + { + "id": "Azure Blueprints", + "displayName": "Azure Blueprints", + "resourceTypes": [] + }, + { + "id": "Azure Bot Service", + "displayName": "Azure Bot Service", + "resourceTypes": [ + "microsoft.botservice/botservices" + ] + }, + { + "id": "Azure Chaos Studio", + "displayName": "Azure Chaos Studio", + "resourceTypes": [] + }, + { + "id": "Azure Communication Services", + "displayName": "Azure Communication Services", + "resourceTypes": [ + "microsoft.communication/communicationservices" + ] + }, + { + "id": "Azure Container Apps", + "displayName": "Azure Container Apps", + "resourceTypes": [] + }, + { + "id": "Azure Container Registry", + "displayName": "Azure Container Registry", + "resourceTypes": [ + "microsoft.containerregistry/registries" + ] + }, + { + "id": "Azure Container Service", + "displayName": "Azure Container Service", + "resourceTypes": [ + "microsoft.containerservice/managedclusters" + ] + }, + { + "id": "Azure Cosmos DB", + "displayName": "Azure Cosmos DB", + "resourceTypes": [ + "microsoft.documentdb/databaseaccounts" + ] + }, + { + "id": "Azure Cosmos DB for PostgreSQL", + "displayName": "Azure Cosmos DB for PostgreSQL", + "resourceTypes": [ + "microsoft.dbforpostgresql/servergroupsv2" + ] + }, + { + "id": "Azure DDoS Protection", + "displayName": "Azure DDoS Protection", + "resourceTypes": [] + }, + { + "id": "Azure DNS", + "displayName": "Azure DNS", + "resourceTypes": [ + "microsoft.network/dnszones" + ] + }, + { + "id": "Azure Data Explorer", + "displayName": "Azure Data Explorer", + "resourceTypes": [ + "microsoft.kusto/clusters", + "microsoft.kusto/clusters/databases/dataconnections" + ] + }, + { + "id": "Azure Data Lake Storage Gen1", + "displayName": "Azure Data Lake Storage Gen1", + "resourceTypes": [ + "microsoft.datalakestore/accounts" + ] + }, + { + "id": "Azure Data Lake Storage Gen2", + "displayName": "Azure Data Lake Storage Gen2", + "resourceTypes": [ + "microsoft.datalakestore/accounts" + ] + }, + { + "id": "Azure Data Share", + "displayName": "Azure Data Share", + "resourceTypes": [ + "microsoft.datashare/accounts", + "microsoft.datashare/shares", + "microsoft.datashare/sharesubscriptions", + "microsoft.datashare/datasets", + "microsoft.datashare/datasetmappings", + "microsoft.datashare/invitations" + ] + }, + { + "id": "Azure Database for MySQL", + "displayName": "Azure Database for MySQL", + "resourceTypes": [ + "microsoft.dbformysql/servers" + ] + }, + { + "id": "Azure Database for MySQL flexible servers", + "displayName": "Azure Database for MySQL flexible servers", + "resourceTypes": [ + "microsoft.dbformysql/flexibleservers" + ] + }, + { + "id": "Azure Database for PostgreSQL", + "displayName": "Azure Database for PostgreSQL", + "resourceTypes": [ + "microsoft.dbforpostgresql/servers" + ] + }, + { + "id": "Azure Database for PostgreSQL flexible servers", + "displayName": "Azure Database for PostgreSQL flexible servers", + "resourceTypes": [ + "microsoft.dbforpostgresql/flexibleservers" + ] + }, + { + "id": "Azure Database Migration Service", + "displayName": "Azure Database Migration Service", + "resourceTypes": [ + "Microsoft.DataMigration/services" + ] + }, + { + "id": "Azure Databricks", + "displayName": "Azure Databricks", + "resourceTypes": [ + "microsoft.databricks/workspaces" + ] + }, + { + "id": "Azure Dedicated Host", + "displayName": "Azure Dedicated Host", + "resourceTypes": [ + "microsoft.compute/hostgroups/hosts" + ] + }, + { + "id": "Azure DevOps", + "displayName": "Azure DevOps", + "resourceTypes": [] + }, + { + "id": "Azure DevOps \\ Artifacts", + "displayName": "Azure DevOps \\ Artifacts", + "resourceTypes": [] + }, + { + "id": "Azure DevOps \\ Boards", + "displayName": "Azure DevOps \\ Boards", + "resourceTypes": [] + }, + { + "id": "Azure DevOps \\ Pipelines", + "displayName": "Azure DevOps \\ Pipelines", + "resourceTypes": [] + }, + { + "id": "Azure DevOps \\ Repos", + "displayName": "Azure DevOps \\ Repos", + "resourceTypes": [] + }, + { + "id": "Azure DevOps \\ Test Plans", + "displayName": "Azure DevOps \\ Test Plans", + "resourceTypes": [] + }, + { + "id": "Azure DevTest Labs", + "displayName": "Azure DevTest Labs", + "resourceTypes": [ + "microsoft.devtestlab/labs" + ] + }, + { + "id": "Azure Digital Twins", + "displayName": "Azure Digital Twins", + "resourceTypes": [ + "microsoft.digitaltwins/digitaltwinsinstances" + ] + }, + { + "id": "Azure FarmBeats", + "displayName": "Azure FarmBeats", + "resourceTypes": [] + }, + { + "id": "Azure File Sync", + "displayName": "Azure File Sync", + "resourceTypes": [] + }, + { + "id": "Azure Firewall", + "displayName": "Azure Firewall", + "resourceTypes": [ + "microsoft.network/azurefirewalls" + ] + }, + { + "id": "Azure Firewall Manager", + "displayName": "Azure Firewall Manager", + "resourceTypes": [ + "microsoft.network/firewallpolicies" + ] + }, + { + "id": "Azure Fluid Relay", + "displayName": "Azure Fluid Relay", + "resourceTypes": [ + "microsoft.fluidrelay/fluidrelayservers" + ] + }, + { + "id": "Azure Frontdoor", + "displayName": "Azure Frontdoor", + "resourceTypes": [ + "microsoft.network/frontdoors" + ] + }, + { + "id": "Azure Health Data Services", + "displayName": "Azure Health Data Services", + "resourceTypes": [] + }, + { + "id": "Azure HPC Cache", + "displayName": "Azure HPC Cache", + "resourceTypes": [ + "microsoft.storagecache/caches" + ] + }, + { + "id": "Azure Information Protection", + "displayName": "Azure Information Protection", + "resourceTypes": [] + }, + { + "id": "Azure Immersive Reader", + "displayName": "Azure Immersive Reader", + "resourceTypes": [] + }, + { + "id": "Azure IoT Hub", + "displayName": "Azure IoT Hub", + "resourceTypes": [ + "microsoft.devices/iothubs" + ] + }, + { + "id": "Azure Key Vault Managed HSM", + "displayName": "Azure Key Vault Managed HSM", + "resourceTypes": [] + }, + { + "id": "Azure Kubernetes Service (AKS)", + "displayName": "Azure Kubernetes Service (AKS)", + "resourceTypes": [ + "microsoft.containerservice/managedclusters" + ] + }, + { + "id": "Azure Kubernetes Service On Azure Stack HCI", + "displayName": "Azure Kubernetes Service On Azure Stack HCI", + "resourceTypes": [] + }, + { + "id": "Azure Lab Services", + "displayName": "Azure Lab Services", + "resourceTypes": [] + }, + { + "id": "Azure Load Testing", + "displayName": "Azure Load Testing", + "resourceTypes": [] + }, + { + "id": "Azure Managed Applications", + "displayName": "Azure Managed Applications", + "resourceTypes": [] + }, + { + "id": "Azure Managed Instance for Apache Cassandra", + "displayName": "Azure Managed Instance for Apache Cassandra", + "resourceTypes": [] + }, + { + "id": "Azure Maps", + "displayName": "Azure Maps", + "resourceTypes": [ + "microsoft.maps/accounts" + ] + }, + { + "id": "Azure Migrate", + "displayName": "Azure Migrate", + "resourceTypes": [ + "microsoft.migrate/migrateprojects" + ] + }, + { + "id": "Azure Monitor", + "displayName": "Azure Monitor", + "resourceTypes": [ + "microsoft.alertsmanagement/alerts", + "microsoft.insights/scheduledqueryrules" + ] + }, + { + "id": "Azure Netapp Files", + "displayName": "Azure Netapp Files", + "resourceTypes": [ + "microsoft.netapp/netappaccounts" + ] + }, + { + "id": "Azure Network Function Manager - Device", + "displayName": "Azure Network Function Manager - Device", + "resourceTypes": [ + "microsoft.hybridnetwork/devices" + ] + }, + { + "id": "Azure Network Function Manager - Network Function", + "displayName": "Azure Network Function Manager - Network Function", + "resourceTypes": [ + "microsoft.hybridnetwork/networkfunctions" + ] + }, + { + "id": "Azure OpenAI Service", + "displayName": "Azure OpenAI Service", + "resourceTypes": [] + }, + { + "id": "Azure Open Datasets", + "displayName": "Azure Open Datasets", + "resourceTypes": [] + }, + { + "id": "Azure Orbital", + "displayName": "Azure Orbital", + "resourceTypes": [] + }, + { + "id": "Azure Peering Service", + "displayName": "Azure Peering Service", + "resourceTypes": [ + "microsoft.peering/peeringservices" + ] + }, + { + "id": "Azure Policy", + "displayName": "Azure Policy", + "resourceTypes": [] + }, + { + "id": "Azure Private 5G Core", + "displayName": "Azure Private 5G Core", + "resourceTypes": [] + }, + { + "id": "Azure Private Link", + "displayName": "Azure Private Link", + "resourceTypes": [ + "microsoft.network/privateendpoints", + "microsoft.network/privatelinkservices" + ] + }, + { + "id": "Azure Purview", + "displayName": "Azure Purview", + "resourceTypes": [ + "microsoft.purview/accounts" + ] + }, + { + "id": "Azure Quantum", + "displayName": "Azure Quantum", + "resourceTypes": [] + }, + { + "id": "Azure Red Hat OpenShift", + "displayName": "Azure Red Hat OpenShift", + "resourceTypes": [] + }, + { + "id": "Azure Reservations", + "displayName": "Azure Reservations", + "resourceTypes": [] + }, + { + "id": "Azure Resource Manager", + "displayName": "Azure Resource Manager", + "resourceTypes": [] + }, + { + "id": "Azure Resource Mover", + "displayName": "Azure Resource Mover", + "resourceTypes": [ + "microsoft.migrate/movecollections" + ] + }, + { + "id": "Azure Search", + "displayName": "Azure Search", + "resourceTypes": [ + "microsoft.search/searchservices" + ] + }, + { + "id": "Azure Sentinel", + "displayName": "Azure Sentinel", + "resourceTypes": [] + }, + { + "id": "Azure Metrics Advisor", + "displayName": "Azure Metrics Advisor", + "resourceTypes": [] + }, + { + "id": "Azure SignalR Service", + "displayName": "Azure SignalR Service", + "resourceTypes": [ + "microsoft.signalrservice/signalr" + ] + }, + { + "id": "Azure Spatial Anchors", + "displayName": "Azure Spatial Anchors", + "resourceTypes": [ + "microsoft.mixedreality/spatialanchorsaccounts" + ] + }, + { + "id": "Azure Sphere", + "displayName": "Azure Sphere", + "resourceTypes": [] + }, + { + "id": "Azure Spring Cloud", + "displayName": "Azure Spring Cloud", + "resourceTypes": [ + "microsoft.appplatform/spring" + ] + }, + { + "id": "Azure SQL Migration extension for Azure Data Studio powered by Azure Database Migration Service", + "displayName": "Azure SQL Migration extension for Azure Data Studio powered by Azure Database Migration Service", + "resourceTypes": [ + "microsoft.datamigration/sqlmigrationservices" + ] + }, + { + "id": "Azure Stack", + "displayName": "Azure Stack", + "resourceTypes": [] + }, + { + "id": "Azure Stack Edge", + "displayName": "Azure Stack Edge", + "resourceTypes": [] + }, + { + "id": "Azure Stack HCI", + "displayName": "Azure Stack HCI", + "resourceTypes": [ + "microsoft.azurestackhci/clusters" + ] + }, + { + "id": "Azure Static Web Apps", + "displayName": "Azure Static Web Apps", + "resourceTypes": [ + "microsoft.web/staticsites" + ] + }, + { + "id": "Azure Synapse Analytics", + "displayName": "Azure Synapse Analytics", + "resourceTypes": [ + "microsoft.sql/servers", + "microsoft.synapse/workspaces" + ] + }, + { + "id": "Azure Video Analyzer", + "displayName": "Azure Video Analyzer", + "resourceTypes": [] + }, + { + "id": "Azure Video Analyzer For Media", + "displayName": "Azure Video Analyzer For Media", + "resourceTypes": [] + }, + { + "id": "Azure VMware Solution", + "displayName": "Azure VMware Solution", + "resourceTypes": [ + "microsoft.avs/privateclouds", + "microsoft.avs/privateclouds/clusters" + ] + }, + { + "id": "Azure VMware Solution by CloudSimple", + "displayName": "Azure VMware Solution by CloudSimple", + "resourceTypes": [] + }, + { + "id": "Azure Web PubSub", + "displayName": "Azure Web PubSub", + "resourceTypes": [] + }, + { + "id": "Recovery Services vault", + "displayName": "Recovery Services vault", + "resourceTypes": [ + "microsoft.recoveryservices/vaults" + ] + }, + { + "id": "Backup vault", + "displayName": "Backup vault", + "resourceTypes": [ + "microsoft.dataprotection/backupvaults" + ] + }, + { + "id": "Batch", + "displayName": "Batch", + "resourceTypes": [ + "microsoft.batch/batchaccounts" + ] + }, + { + "id": "BareMetal Infrastructure", + "displayName": "BareMetal Infrastructure", + "resourceTypes": [ + "microsoft.baremetalinfrastructure/baremetalinstances" + ] + }, + { + "id": "CDN", + "displayName": "CDN", + "resourceTypes": [ + "microsoft.cdn/profiles" + ] + }, + { + "id": "Change Analysis", + "displayName": "Change Analysis", + "resourceTypes": [] + }, + { + "id": "Cloud Services", + "displayName": "Cloud Services", + "resourceTypes": [ + "microsoft.classiccompute/domainnames", + "microsoft.compute/domainnames" + ] + }, + { + "id": "Cloud Shell", + "displayName": "Cloud Shell", + "resourceTypes": [] + }, + { + "id": "Cognitive Services \\ Anomaly Detector", + "displayName": "Cognitive Services \\ Anomaly Detector\"", + "resourceTypes": [] + }, + { + "id": "Cognitive Services \\ Azure Metrics Advisor", + "displayName": "Cognitive Services \\ Azure Metrics Advisor", + "resourceTypes": [] + }, + { + "id": "Cognitive Services \\ Bing Autosuggest API", + "displayName": "Cognitive Services \\ Bing Autosuggest API", + "resourceTypes": [ + "microsoft.cognitiveservices/accounts" + ] + }, + { + "id": "Cognitive Services \\ Bing Search API", + "displayName": "Cognitive Services \\ Bing Search API", + "resourceTypes": [ + "microsoft.cognitiveservices/accounts" + ] + }, + { + "id": "Cognitive Services \\ Bing Speech API", + "displayName": "Cognitive Services \\ Bing Speech API", + "resourceTypes": [] + }, + { + "id": "Cognitive Services \\ Bing Spell Check API", + "displayName": "Cognitive Services \\ Bing Spell Check API", + "resourceTypes": [ + "microsoft.cognitiveservices/accounts" + ] + }, + { + "id": "Cognitive Services \\ Bing Video Search API", + "displayName": "Cognitive Services \\ Bing Video Search API", + "resourceTypes": [] + }, + { + "id": "Cognitive Services \\ Bing Visual Search API", + "displayName": "Cognitive Services \\ Bing Visual Search API", + "resourceTypes": [] + }, + { + "id": "Cognitive Services \\ Bing Web Search API", + "displayName": "Cognitive Services \\ Bing Web Search API", + "resourceTypes": [] + }, + { + "id": "Cognitive Services \\ Computer Vision API", + "displayName": "Cognitive Services \\ Computer Vision API", + "resourceTypes": [] + }, + { + "id": "Cognitive Services \\ Content Moderator API", + "displayName": "Cognitive Services \\ Content Moderator API", + "resourceTypes": [] + }, + { + "id": "Cognitive Services \\ Custom Vision API", + "displayName": "Cognitive Services \\ Custom Vision API", + "resourceTypes": [] + }, + { + "id": "Cognitive Services \\ Face API", + "displayName": "Cognitive Services \\ Face API", + "resourceTypes": [] + }, + { + "id": "Cognitive Services \\ Form Recognizer API", + "displayName": "Cognitive Services \\ Form Recognizer API", + "resourceTypes": [] + }, + { + "id": "Cognitive Services \\ Azure Form Recognizer", + "displayName": "Cognitive Services \\ Azure Form Recognizer", + "resourceTypes": [] + }, + { + "id": "Cognitive Services \\ Image Search API", + "displayName": "Cognitive Services \\ Image Search API", + "resourceTypes": [] + }, + { + "id": "Cognitive Services \\ Language Understanding (LUIS)", + "displayName": "Cognitive Services \\ Language Understanding (LUIS)", + "resourceTypes": [] + }, + { + "id": "Cognitive Services \\ News Search API", + "displayName": "Cognitive Services \\ News Search API", + "resourceTypes": [] + }, + { + "id": "Cognitive Services \\ Personalizer API", + "displayName": "Cognitive Services \\ Personalizer API", + "resourceTypes": [] + }, + { + "id": "Cognitive Services \\ QnA Maker API", + "displayName": "Cognitive Services \\ QnA Maker API", + "resourceTypes": [] + }, + { + "id": "Cognitive Services \\ Speech Services API", + "displayName": "Cognitive Services \\ Speech Services API", + "resourceTypes": [] + }, + { + "id": "Cognitive Services \\ Speaker Recognition API", + "displayName": "Cognitive Services \\ Speaker Recognition API", + "resourceTypes": [] + }, + { + "id": "Cognitive Services \\ Text Analytics API", + "displayName": "Cognitive Services \\ Text Analytics API", + "resourceTypes": [ + "microsoft.cognitiveservices/accounts" + ] + }, + { + "id": "Cognitive Services \\ Translator Speech API", + "displayName": "Cognitive Services \\ Translator Speech API", + "resourceTypes": [ + "microsoft.cognitiveservices/accounts" + ] + }, + { + "id": "Cognitive Services \\ Translator Text API", + "displayName": "Cognitive Services \\ Translator Text API", + "resourceTypes": [ + "microsoft.cognitiveservices/accounts" + ] + }, + { + "id": "Container Instances", + "displayName": "Container Instances", + "resourceTypes": [ + "microsoft.containerinstance/containergroups" + ] + }, + { + "id": "Container Registry", + "displayName": "Container Registry", + "resourceTypes": [ + "microsoft.containerregistry/registries" + ] + }, + { + "id": "Cost Management", + "displayName": "Cost Management", + "resourceTypes": [] + }, + { + "id": "Data Catalog", + "displayName": "Data Catalog", + "resourceTypes": [ + "microsoft.datacatalog/catalogs" + ] + }, + { + "id": "Data Factory", + "displayName": "Data Factory", + "resourceTypes": [ + "microsoft.datafactory/datafactories" + ] + }, + { + "id": "Data Factory V1", + "displayName": "Data Factory V1", + "resourceTypes": [ + "microsoft.datafactory/datafactories" + ] + }, + { + "id": "Data Factory V2", + "displayName": "Data Factory V2", + "resourceTypes": [ + "microsoft.datafactory/factories" + ] + }, + { + "id": "Data Factory V2 \\ SSIS Integration Runtime", + "displayName": "Data Factory V2 \\ SSIS Integration Runtime", + "resourceTypes": [ + "microsoft.datafactory/factories" + ] + }, + { + "id": "Data Factory \\ Azure Integration Runtime", + "displayName": "Data Factory \\ Azure Integration Runtime", + "resourceTypes": [ + "microsoft.datafactory/datafactories" + ] + }, + { + "id": "Data Lake Analytics", + "displayName": "Data Lake Analytics", + "resourceTypes": [ + "microsoft.datalakeanalytics/accounts", + "microsoft.datalakeanalytics/accounts/storageaccounts" + ] + }, + { + "id": "Diagnostic Logs", + "displayName": "Diagnostic Logs", + "resourceTypes": [] + }, + { + "id": "Event Grid", + "displayName": "Event Grid", + "resourceTypes": [ + "microsoft.eventgrid/topics" + ] + }, + { + "id": "Event Hubs", + "displayName": "Event Hubs", + "resourceTypes": [ + "microsoft.eventhub/namespaces" + ] + }, + { + "id": "ExpressRoute", + "displayName": "ExpressRoute", + "resourceTypes": [ + "microsoft.network/expressroutecircuits" + ] + }, + { + "id": "ExpressRoute \\ ExpressRoute Circuits", + "displayName": "ExpressRoute \\ ExpressRoute Circuits", + "resourceTypes": [ + "microsoft.network/expressroutecircuits" + ] + }, + { + "id": "ExpressRoute \\ ExpressRoute Gateways", + "displayName": "ExpressRoute \\ ExpressRoute Gateways", + "resourceTypes": [] + }, + { + "id": "Functions", + "displayName": "Functions", + "resourceTypes": [ + "microsoft.web/sites" + ] + }, + { + "id": "HDInsight", + "displayName": "HDInsight", + "resourceTypes": [ + "microsoft.hdinsight/clusters" + ] + }, + { + "id": "Health Bot", + "displayName": "Health Bot", + "resourceTypes": [] + }, + { + "id": "HockeyApp", + "displayName": "HockeyApp", + "resourceTypes": [] + }, + { + "id": "Internet Analyzer", + "displayName": "Internet Analyzer", + "resourceTypes": [ + "microsoft.network/networkexperiment" + ] + }, + { + "id": "IoT Central", + "displayName": "IoT Central", + "resourceTypes": [ + "microsoft.iotcentral/iotapps" + ] + }, + { + "id": "IoT Hub \\ IoT Hub Device Provisioning Service", + "displayName": "IoT Hub \\ IoT Hub Device Provisioning Service", + "resourceTypes": [] + }, + { + "id": "Key Vault", + "displayName": "Key Vault", + "resourceTypes": [ + "microsoft.keyvault/vaults" + ] + }, + { + "id": "Load Balancer", + "displayName": "Load Balancer", + "resourceTypes": [ + "microsoft.network/loadbalancers" + ] + }, + { + "id": "Log Analytics", + "displayName": "Log Analytics", + "resourceTypes": [ + "microsoft.operationalinsights/workspaces" + ] + }, + { + "id": "Logic Apps", + "displayName": "Logic Apps", + "resourceTypes": [ + "microsoft.logic/workflows" + ] + }, + { + "id": "Machine Learning Services", + "displayName": "Machine Learning Services", + "resourceTypes": [ + "microsoft.machinelearning/workspaces", + "microsoft.machinelearning/commitmentplans", + "microsoft.machinelearning/webservices" + ] + }, + { + "id": "Machine Learning Services \\ Machine Learning Experimentation Service", + "displayName": "Machine Learning Services \\ Machine Learning Experimentation Service", + "resourceTypes": [] + }, + { + "id": "Machine Learning Services \\ Machine Learning Model Management", + "displayName": "Machine Learning Services \\ Machine Learning Model Management", + "resourceTypes": [] + }, + { + "id": "Machine Learning Studio", + "displayName": "Machine Learning Studio", + "resourceTypes": [] + }, + { + "id": "MariaDB", + "displayName": "MariaDB", + "resourceTypes": [ + "microsoft.dbformariadb/servers" + ] + }, + { + "id": "Marketplace", + "displayName": "Marketplace", + "resourceTypes": [] + }, + { + "id": "Media Services \\ Encoding", + "displayName": "Media Services \\ Encoding", + "resourceTypes": [ + "microsoft.media/mediaservices" + ] + }, + { + "id": "Media Services \\ Streaming", + "displayName": "Media Services \\ Streaming", + "resourceTypes": [ + "microsoft.media/mediaservices" + ] + }, + { + "id": "Microsoft Azure Attestation", + "displayName": "Microsoft Azure Attestation", + "resourceTypes": [] + }, + { + "id": "Microsoft Azure portal", + "displayName": "Microsoft Azure portal", + "resourceTypes": [] + }, + { + "id": "Microsoft Azure portal \\ Marketplace", + "displayName": "Microsoft Azure portal \\ Marketplace", + "resourceTypes": [] + }, + { + "id": "Microsoft Defender for Cloud", + "displayName": "Microsoft Defender for Cloud", + "resourceTypes": [] + }, + { + "id": "Microsoft Defender for IoT", + "displayName": "Microsoft Defender for IoT", + "resourceTypes": [] + }, + { + "id": "Microsoft Entra Permissions Management", + "displayName": "Microsoft Entra Permissions Management", + "resourceTypes": [] + }, + { + "id": "Microsoft Genomics", + "displayName": "Microsoft Genomics", + "resourceTypes": [] + }, + { + "id": "Mobile Engagement", + "displayName": "Mobile Engagement", + "resourceTypes": [] + }, + { + "id": "Multi-Factor Authentication", + "displayName": "Multi-Factor Authentication", + "resourceTypes": [] + }, + { + "id": "Network Infrastructure", + "displayName": "Network Infrastructure", + "resourceTypes": [] + }, + { + "id": "Network Watcher", + "displayName": "Network Watcher", + "resourceTypes": [] + }, + { + "id": "Notification Hubs", + "displayName": "Notification Hubs", + "resourceTypes": [ + "microsoft.notificationhubs/namespaces" + ] + }, + { + "id": "Power BI Embedded", + "displayName": "Power BI Embedded", + "resourceTypes": [ + "microsoft.powerbi/workspacecollections", + "microsoft.powerbidedicated/capacities" + ] + }, + { + "id": "Redis Cache", + "displayName": "Redis Cache", + "resourceTypes": [ + "microsoft.cache/redis" + ] + }, + { + "id": "Remote Rendering", + "displayName": "Remote Rendering", + "resourceTypes": [ + "microsoft.mixedreality/remoterenderingaccounts" + ] + }, + { + "id": "SAP HANA on Azure Large Instances", + "displayName": "SAP HANA on Azure Large Instances", + "resourceTypes": [ + "microsoft.hanaonazure/hanainstances" + ] + }, + { + "id": "SQL Data Warehouse", + "displayName": "SQL Data Warehouse", + "resourceTypes": [ + "microsoft.sql/servers/databases" + ] + }, + { + "id": "SQL Database", + "displayName": "SQL Database", + "resourceTypes": [ + "microsoft.sql/servers", + "microsoft.sql/servers/databases", + "microsoft.sql/servers/elasticpools" + ] + }, + { + "id": "SQL Managed Instance", + "displayName": "SQL Managed Instance", + "resourceTypes": [ + "microsoft.sql/managedinstances/databases", + "microsoft.sql/managedinstances" + ] + }, + { + "id": "SQL Server on Azure Virtual Machines", + "displayName": "SQL Server on Azure Virtual Machines", + "resourceTypes": [ + "microsoft.sqlvirtualmachine/sqlvirtualmachines" + ] + }, + { + "id": "SQL Server Stretch Database", + "displayName": "SQL Server Stretch Database", + "resourceTypes": [] + }, + { + "id": "Scheduler", + "displayName": "Scheduler", + "resourceTypes": [ + "microsoft.scheduler/jobcollections" + ] + }, + { + "id": "Security Center", + "displayName": "Security Center", + "resourceTypes": [] + }, + { + "id": "Service Bus", + "displayName": "Service Bus", + "resourceTypes": [ + "microsoft.servicebus/namespaces" + ] + }, + { + "id": "Service Fabric", + "displayName": "Service Fabric", + "resourceTypes": [ + "microsoft.servicefabric/clusters" + ] + }, + { + "id": "Site Recovery", + "displayName": "Site Recovery", + "resourceTypes": [ + "microsoft.recoveryservices/vaults" + ] + }, + { + "id": "StorSimple", + "displayName": "StorSimple", + "resourceTypes": [ + "microsoft.storsimple/managers", + "microsoft.storsimplebvtd2/managers" + ] + }, + { + "id": "Storage", + "displayName": "Storage", + "resourceTypes": [ + "microsoft.classicstorage/storageaccounts", + "microsoft.storage/storageaccounts" + ] + }, + { + "id": "Stream Analytics", + "displayName": "Stream Analytics", + "resourceTypes": [ + "microsoft.streamanalytics/streamingjobs" + ] + }, + { + "id": "Subscription Management", + "displayName": "Subscription Management", + "resourceTypes": [] + }, + { + "id": "Time Series Insights", + "displayName": "Time Series Insights", + "resourceTypes": [] + }, + { + "id": "Traffic Manager", + "displayName": "Traffic Manager", + "resourceTypes": [ + "microsoft.network/trafficmanagerprofiles" + ] + }, + { + "id": "VPN Gateway", + "displayName": "VPN Gateway", + "resourceTypes": [ + "microsoft.network/virtualnetworkgateways", + "microsoft.network/connections" + ] + }, + { + "id": "VPN Gateway \\ Virtual WAN", + "displayName": "VPN Gateway \\ Virtual WAN", + "resourceTypes": [] + }, + { + "id": "Virtual Machine Scale Sets", + "displayName": "Virtual Machine Scale Sets", + "resourceTypes": [ + "microsoft.compute/virtualmachinescalesets" + ] + }, + { + "id": "Virtual Machines", + "displayName": "Virtual Machines", + "resourceTypes": [ + "microsoft.classiccompute/virtualmachines", + "microsoft.compute/virtualmachines" + ] + }, + { + "id": "Virtual Network", + "displayName": "Virtual Network", + "resourceTypes": [ + "microsoft.network/virtualnetworks", + "microsoft.classicnetwork/virtualnetworks" + ] + }, + { + "id": "Windows 10 IoT Core Services", + "displayName": "Windows 10 IoT Core Services", + "resourceTypes": [] + }, + { + "id": "Windows Virtual Desktop", + "displayName": "Windows Virtual Desktop", + "resourceTypes": [ + "microsoft.desktopvirtualization/hostpools" + ] + }, + { + "id": "Azure Automanage", + "displayName": "Azure Automanage", + "resourceTypes": [ + "microsoft.automanage/configurationprofiles", + "microsoft.compute/virtualmachines/providers/configurationprofileassignments", + "microsoft.hybridcompute/machines/providers/configurationprofileassignments", + "microsoft.Azurestackhci/clusters/providers/configurationprofileassignments" + ] + }, + { + "id": "Microsoft Graph", + "displayName": "Microsoft Graph", + "resourceTypes": [] + }, + { + "id": "Azure confidential ledger", + "displayName": "Azure confidential ledger", + "resourceTypes": [] + }, + { + "id": "Azure Managed Grafana", + "displayName": "Azure Managed Grafana", + "resourceTypes": [] + }, + { + "id": "Universal Print", + "displayName": "Universal Print", + "resourceTypes": [] + }, + { + "id": "Azure Applied AI Services \\ Azure Video Indexer", + "displayName": "Azure Applied AI Services \\ Azure Video Indexer", + "resourceTypes": [] + }, + { + "id": "Azure Route Server", + "displayName": "Azure Route Server", + "resourceTypes": [] + }, + { + "id": "Virtual Network NAT", + "displayName": "Virtual Network NAT", + "resourceTypes": [] + }, + { + "id": "Microsoft Defender External Attack Surface Management", + "displayName": "Microsoft Defender External Attack Surface Management", + "resourceTypes": [] + } + ] + } + } + ] + } + } + } +} diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Operations_List.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Operations_List.json new file mode 100644 index 000000000000..d1152a2c50e4 --- /dev/null +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Operations_List.json @@ -0,0 +1,163 @@ +{ + "parameters": { + "api-version": "2022-10-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.ResourceHealth/Operations/read", + "display": { + "provider": "Microsoft ResourceHealth", + "resource": "Availability Status", + "operation": "Get Operations", + "description": "Get the operations available for the Microsoft ResourceHealth" + } + }, + { + "name": "Microsoft.ResourceHealth/Notifications/read", + "display": { + "provider": "Microsoft ResourceHealth", + "resource": "Notification", + "operation": "Receive notification", + "description": "Receives ARM notifications" + } + }, + { + "name": "Microsoft.ResourceHealth/AvailabilityStatuses/read", + "display": { + "provider": "Microsoft ResourceHealth", + "resource": "Availability Status", + "operation": "Get Availability Statuses", + "description": "Gets the availability statuses for all resources in the specified scope" + } + }, + { + "name": "Microsoft.ResourceHealth/AvailabilityStatuses/current/read", + "display": { + "provider": "Microsoft ResourceHealth", + "resource": "Availability Status", + "operation": "Get Availability Status", + "description": "Gets the availability status for the specified resource" + } + }, + { + "name": "Microsoft.ResourceHealth/events/read", + "display": { + "provider": "Microsoft ResourceHealth", + "resource": "Events", + "operation": "Get Service Health Events", + "description": "Get Service Health Events for given subscription" + } + }, + { + "name": "Microsoft.ResourceHealth/emergingissues/read", + "display": { + "provider": "Microsoft ResourceHealth", + "resource": "Emerging Issues", + "operation": "Get Azure Emerging Issues", + "description": "Get Azure services' emerging issues" + } + }, + { + "name": "Microsoft.ResourceHealth/potentialoutages/read", + "display": { + "provider": "Microsoft ResourceHealth" + } + }, + { + "name": "Microsoft.ResourceHealth/impactedResources/read", + "display": { + "provider": "Microsoft ResourceHealth", + "resource": "Impacted Resources", + "operation": "Get Impacted Resources", + "description": "Get Impacted Resources for given subscription" + } + }, + { + "name": "Microsoft.ResourceHealth/register/action", + "display": { + "provider": "Microsoft ResourceHealth", + "resource": "Registration", + "operation": "Register with the Provider", + "description": "Registers the subscription for the Microsoft ResourceHealth" + } + }, + { + "name": "Microsoft.ResourceHealth/unregister/action", + "display": { + "provider": "Microsoft ResourceHealth", + "resource": "Unregistration", + "operation": "Unregister with the Provider", + "description": "Unregisters the subscription for the Microsoft ResourceHealth" + } + }, + { + "name": "Microsoft.Resourcehealth/healthevent/action", + "display": { + "provider": "Microsoft ResourceHealth", + "resource": "Availability Status", + "operation": "HealthEvent Change", + "description": "Denotes the change in health state for the specified resource" + } + }, + { + "name": "Microsoft.Resourcehealth/healthevent/Activated/action", + "display": { + "provider": "Microsoft ResourceHealth", + "resource": "Health Event", + "operation": "Health Event Activated", + "description": "Denotes the change in health state for the specified resource" + } + }, + { + "name": "Microsoft.Resourcehealth/healthevent/Updated/action", + "display": { + "provider": "Microsoft ResourceHealth", + "resource": "Health Event", + "operation": "Health Event Updated", + "description": "Denotes the change in health state for the specified resource" + } + }, + { + "name": "Microsoft.Resourcehealth/healthevent/Resolved/action", + "display": { + "provider": "Microsoft ResourceHealth", + "resource": "Health Event", + "operation": "Health Event Resolved", + "description": "Denotes the change in health state for the specified resource" + } + }, + { + "name": "Microsoft.Resourcehealth/healthevent/InProgress/action", + "display": { + "provider": "Microsoft ResourceHealth", + "resource": "Health Event", + "operation": "Health Event InProgress", + "description": "Denotes the change in health state for the specified resource" + } + }, + { + "name": "Microsoft.Resourcehealth/healthevent/Pending/action", + "display": { + "provider": "Microsoft ResourceHealth", + "resource": "Health Event", + "operation": "Health Event Pending", + "description": "Denotes the change in health state for the specified resource" + } + }, + { + "name": "Microsoft.ResourceHealth/metadata/read", + "display": { + "provider": "Microsoft ResourceHealth", + "resource": "Metadata", + "operation": "Read Metadata", + "description": "Gets Metadata" + } + } + ] + } + } + } +} diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/SecurityAdvisoryImpactedResources_ListBySubscriptionId_ListByEventId.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/SecurityAdvisoryImpactedResources_ListBySubscriptionId_ListByEventId.json new file mode 100644 index 000000000000..c38960087b34 --- /dev/null +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/SecurityAdvisoryImpactedResources_ListBySubscriptionId_ListByEventId.json @@ -0,0 +1,66 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "eventTrackingId": "BC_1-FXZ", + "api-version": "2022-10-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/{subscripitionId}/providers/Microsoft.ResourceHealth/events/BC_1-FXZ/impactedResources/jkl-901-hgy-445", + "name": "jkl-901-hgy-445", + "type": "Microsoft.ResourceHealth/events/impactedResources", + "properties": { + "info": [ + { + "key": "key-A", + "value": "sample-1" + }, + { + "key": "key-B", + "value": "sample-2" + }, + { + "key": "key-C", + "value": "sample-3" + }, + { + "key": "key-D", + "value": "sample-4" + } + ] + } + }, + { + "id": "/subscriptions/{subscripitionId}/providers/Microsoft.ResourceHealth/events/BC_1-FXZ/impactedResources/wer-345-tyu-789", + "name": "wer-345-tyu-789", + "type": "Microsoft.ResourceHealth/events/impactedResources", + "properties": { + "info": [ + { + "key": "key-E", + "value": "sample-5" + }, + { + "key": "key-F", + "value": "sample-6" + }, + { + "key": "key-G", + "value": "sample-7" + }, + { + "key": "key-H", + "value": "sample-8" + } + ] + } + } + ], + "nextLink": "{originalRequestUrl}?$skipToken={OpaquePageNumber}" + } + } + } +} diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/SecurityAdvisoryImpactedResources_ListByTenantId_ListByEventId.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/SecurityAdvisoryImpactedResources_ListByTenantId_ListByEventId.json new file mode 100644 index 000000000000..189b219f8705 --- /dev/null +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/SecurityAdvisoryImpactedResources_ListByTenantId_ListByEventId.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "eventTrackingId": "BC_1-FXZ", + "api-version": "2022-10-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.ResourceHealth/events/BC_1-FXZ/impactedResources/jkl-901-hgy-445", + "name": "jkl-901-hgy-445", + "type": "Microsoft.ResourceHealth/events/impactedResources", + "properties": { + "info": [ + { + "key": "key-A", + "value": "sample-1" + }, + { + "key": "key-B", + "value": "sample-2" + }, + { + "key": "key-C", + "value": "sample-3" + }, + { + "key": "key-D", + "value": "sample-4" + } + ] + } + }, + { + "id": "/providers/Microsoft.ResourceHealth/events/BC_1-FXZ/impactedResources/wer-345-tyu-789", + "name": "wer-345-tyu-789", + "type": "Microsoft.ResourceHealth/events/impactedResources", + "properties": { + "info": [ + { + "key": "key-E", + "value": "sample-5" + }, + { + "key": "key-F", + "value": "sample-6" + }, + { + "key": "key-G", + "value": "sample-7" + }, + { + "key": "key-H", + "value": "sample-8" + } + ] + } + } + ], + "nextLink": "{originalRequestUrl}?$skipToken={OpaquePageNumber}" + } + } + } +} From 989369d7a0ca00a7445ab4e3a96a631fb2af8288 Mon Sep 17 00:00:00 2001 From: abhayohri <111389143+abhayohri@users.noreply.github.com> Date: Tue, 21 Feb 2023 09:49:42 -0800 Subject: [PATCH 02/27] Updates readme --- .../resourcehealth/resource-manager/readme.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/specification/resourcehealth/resource-manager/readme.md b/specification/resourcehealth/resource-manager/readme.md index 4ee1858d0fed..64330faa91a7 100644 --- a/specification/resourcehealth/resource-manager/readme.md +++ b/specification/resourcehealth/resource-manager/readme.md @@ -26,15 +26,23 @@ These are the global settings for the ResourceHealth API. ``` yaml openapi-type: arm -tag: package-preview-2022-10 +tag: package-2022-10 ``` +### Tag: package-2022-10 + +These settings apply only when `--tag=package-2022-10` is specified on the command line. + +```yaml $(tag) == 'package-2022-10' +input-file: + - Microsoft.ResourceHealth/stable/2022-10-01/ResourceHealth.json +``` ### Tag: package-preview-2022-10 These settings apply only when `--tag=package-preview-2022-10` is specified on the command line. -```yaml $(tag) == 'package-preview-2022-10' +``` yaml $(tag) == 'package-preview-2022-10' input-file: - Microsoft.ResourceHealth/preview/2022-10-01-preview/ResourceHealth.json ``` @@ -43,7 +51,7 @@ input-file: These settings apply only when `--tag=package-2022-05` is specified on the command line. -```yaml $(tag) == 'package-2022-05' +``` yaml $(tag) == 'package-2022-05' input-file: - Microsoft.ResourceHealth/stable/2022-05-01/ResourceHealth.json ``` From 61b7826de23dbe7b52f537542b2d17eb0f2a7a3d Mon Sep 17 00:00:00 2001 From: abhayohri <111389143+abhayohri@users.noreply.github.com> Date: Tue, 21 Feb 2023 09:49:46 -0800 Subject: [PATCH 03/27] Updates API version in new specs and examples --- .../stable/2022-10-01/ResourceHealth.json | 2 +- .../2022-10-01/examples/AvailabilityStatus_GetByResource.json | 2 +- .../stable/2022-10-01/examples/AvailabilityStatuses_List.json | 2 +- .../examples/AvailabilityStatuses_ListByResourceGroup.json | 2 +- .../examples/AvailabilityStatuses_ListBySubscriptionId.json | 2 +- .../stable/2022-10-01/examples/EmergingIssues_Get.json | 2 +- .../stable/2022-10-01/examples/EmergingIssues_List.json | 2 +- .../examples/Event_GetBySubscriptionIdAndTrackingId.json | 2 +- .../2022-10-01/examples/Event_GetByTenantIdAndTrackingId.json | 2 +- .../Event_fetchDetailsBySubscriptionIdAndTrackingId.json | 2 +- .../examples/Event_fetchDetailsByTenantIdAndTrackingId.json | 2 +- .../stable/2022-10-01/examples/Events_ListBySingleResource.json | 2 +- .../stable/2022-10-01/examples/Events_ListBySubscriptionId.json | 2 +- .../stable/2022-10-01/examples/Events_ListByTenantId.json | 2 +- .../stable/2022-10-01/examples/ImpactedResources_Get.json | 2 +- .../2022-10-01/examples/ImpactedResources_GetByTenantId.json | 2 +- .../ImpactedResources_ListBySubscriptionId_ListByEventId.json | 2 +- .../ImpactedResources_ListByTenantId_ListByEventId.json | 2 +- .../stable/2022-10-01/examples/Metadata_GetEntity.json | 2 +- .../stable/2022-10-01/examples/Metadata_List.json | 2 +- .../stable/2022-10-01/examples/Operations_List.json | 2 +- ...oryImpactedResources_ListBySubscriptionId_ListByEventId.json | 2 +- ...yAdvisoryImpactedResources_ListByTenantId_ListByEventId.json | 2 +- 23 files changed, 23 insertions(+), 23 deletions(-) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/ResourceHealth.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/ResourceHealth.json index ad1af4fad2a2..92e2877efedb 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/ResourceHealth.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/ResourceHealth.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2022-10-01-preview", + "version": "2022-10-01", "title": "Microsoft.ResourceHealth", "description": "The Resource Health Client." }, diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/AvailabilityStatus_GetByResource.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/AvailabilityStatus_GetByResource.json index 9cfb21ffc9d2..879fd686ca6b 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/AvailabilityStatus_GetByResource.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/AvailabilityStatus_GetByResource.json @@ -1,7 +1,7 @@ { "parameters": { "resourceUri": "resourceUri", - "api-version": "2022-10-01-preview", + "api-version": "2022-10-01", "$expand": "recommendedactions" }, "responses": { diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/AvailabilityStatuses_List.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/AvailabilityStatuses_List.json index 4b0cec167de6..a5ccca468c54 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/AvailabilityStatuses_List.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/AvailabilityStatuses_List.json @@ -1,7 +1,7 @@ { "parameters": { "resourceUri": "resourceUri", - "api-version": "2022-10-01-preview" + "api-version": "2022-10-01" }, "responses": { "200": { diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/AvailabilityStatuses_ListByResourceGroup.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/AvailabilityStatuses_ListByResourceGroup.json index 1a15aac04be9..53474d13f482 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/AvailabilityStatuses_ListByResourceGroup.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/AvailabilityStatuses_ListByResourceGroup.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "subscriptionId", "resourceGroupName": "resourceGroupName", - "api-version": "2022-10-01-preview", + "api-version": "2022-10-01", "$expand": "recommendedactions" }, "responses": { diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/AvailabilityStatuses_ListBySubscriptionId.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/AvailabilityStatuses_ListBySubscriptionId.json index 2f2cac809139..bc723a0fd186 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/AvailabilityStatuses_ListBySubscriptionId.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/AvailabilityStatuses_ListBySubscriptionId.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "subscriptionId", - "api-version": "2022-10-01-preview", + "api-version": "2022-10-01", "$expand": "recommendedactions" }, "responses": { diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/EmergingIssues_Get.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/EmergingIssues_Get.json index 6baddcabe607..1f2d3516c1f6 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/EmergingIssues_Get.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/EmergingIssues_Get.json @@ -1,7 +1,7 @@ { "parameters": { "issueName": "default", - "api-version": "2022-10-01-preview" + "api-version": "2022-10-01" }, "responses": { "200": { diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/EmergingIssues_List.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/EmergingIssues_List.json index 447f1676aae0..87d27cba077e 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/EmergingIssues_List.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/EmergingIssues_List.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-10-01-preview" + "api-version": "2022-10-01" }, "responses": { "200": { diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Event_GetBySubscriptionIdAndTrackingId.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Event_GetBySubscriptionIdAndTrackingId.json index 3eff32c798cc..1bba59af975f 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Event_GetBySubscriptionIdAndTrackingId.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Event_GetBySubscriptionIdAndTrackingId.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "subscriptionId", "eventTrackingId": "eventTrackingId", - "api-version": "2022-10-01-preview", + "api-version": "2022-10-01", "$filter": "properties/status eq 'Active'", "queryStartTime": "7/10/2022" }, diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Event_GetByTenantIdAndTrackingId.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Event_GetByTenantIdAndTrackingId.json index 9daeeaa130a2..910d7eb942a5 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Event_GetByTenantIdAndTrackingId.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Event_GetByTenantIdAndTrackingId.json @@ -1,7 +1,7 @@ { "parameters": { "eventTrackingId": "eventTrackingId", - "api-version": "2022-10-01-preview", + "api-version": "2022-10-01", "$filter": "properties/status eq 'Active'", "queryStartTime": "7/10/2022" }, diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Event_fetchDetailsBySubscriptionIdAndTrackingId.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Event_fetchDetailsBySubscriptionIdAndTrackingId.json index 6c57fdefab07..9d465e0583d7 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Event_fetchDetailsBySubscriptionIdAndTrackingId.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Event_fetchDetailsBySubscriptionIdAndTrackingId.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "subscriptionId", "eventTrackingId": "eventTrackingId", - "api-version": "2022-10-01-preview" + "api-version": "2022-10-01" }, "responses": { "200": { diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Event_fetchDetailsByTenantIdAndTrackingId.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Event_fetchDetailsByTenantIdAndTrackingId.json index f295dc51f913..9cdbdf42a0ae 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Event_fetchDetailsByTenantIdAndTrackingId.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Event_fetchDetailsByTenantIdAndTrackingId.json @@ -1,7 +1,7 @@ { "parameters": { "eventTrackingId": "eventTrackingId", - "api-version": "2022-10-01-preview" + "api-version": "2022-10-01" }, "responses": { "200": { diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Events_ListBySingleResource.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Events_ListBySingleResource.json index 86c9a831891e..d96cf8ae3af9 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Events_ListBySingleResource.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Events_ListBySingleResource.json @@ -1,7 +1,7 @@ { "parameters": { "resourceUri": "subscriptions/4abcdefgh-ijkl-mnop-qrstuvwxyz/resourceGroups/rhctestenv/providers/Microsoft.Compute/virtualMachines/rhctestenvV1PI", - "api-version": "2022-10-01-preview" + "api-version": "2022-10-01" }, "responses": { "200": { diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Events_ListBySubscriptionId.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Events_ListBySubscriptionId.json index 101b074a2051..35c49c57f35d 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Events_ListBySubscriptionId.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Events_ListBySubscriptionId.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "subscriptionId", - "api-version": "2022-10-01-preview", + "api-version": "2022-10-01", "$filter": "service eq 'Virtual Machines' or region eq 'West US'", "queryStartTime": "7/24/2020" }, diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Events_ListByTenantId.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Events_ListByTenantId.json index 18e8e8f3dd59..26428bd8d723 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Events_ListByTenantId.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Events_ListByTenantId.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-10-01-preview", + "api-version": "2022-10-01", "$filter": "service eq 'Virtual Machines' or region eq 'West US'", "queryStartTime": "7/24/2020" }, diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ImpactedResources_Get.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ImpactedResources_Get.json index 6ba11fb3b685..f70f6deff7b1 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ImpactedResources_Get.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ImpactedResources_Get.json @@ -3,7 +3,7 @@ "subscriptionId": "subscriptionId", "eventTrackingId": "BC_1-FXZ", "impactedResourceName": "abc-123-ghj-456", - "api-version": "2022-10-01-preview" + "api-version": "2022-10-01" }, "responses": { "200": { diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ImpactedResources_GetByTenantId.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ImpactedResources_GetByTenantId.json index 22583f13829f..8dba2716538d 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ImpactedResources_GetByTenantId.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ImpactedResources_GetByTenantId.json @@ -2,7 +2,7 @@ "parameters": { "eventTrackingId": "BC_1-FXZ", "impactedResourceName": "abc-123-ghj-456", - "api-version": "2022-10-01-preview" + "api-version": "2022-10-01" }, "responses": { "200": { diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ImpactedResources_ListBySubscriptionId_ListByEventId.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ImpactedResources_ListBySubscriptionId_ListByEventId.json index 3000875fbb88..3771d5100f39 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ImpactedResources_ListBySubscriptionId_ListByEventId.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ImpactedResources_ListBySubscriptionId_ListByEventId.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "subscriptionId", "eventTrackingId": "BC_1-FXZ", - "api-version": "2022-10-01-preview", + "api-version": "2022-10-01", "$filter": "targetRegion eq 'westus'" }, "responses": { diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ImpactedResources_ListByTenantId_ListByEventId.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ImpactedResources_ListByTenantId_ListByEventId.json index f2712e8edc5b..151d77c23fd2 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ImpactedResources_ListByTenantId_ListByEventId.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ImpactedResources_ListByTenantId_ListByEventId.json @@ -1,7 +1,7 @@ { "parameters": { "eventTrackingId": "BC_1-FXZ", - "api-version": "2022-10-01-preview", + "api-version": "2022-10-01", "$filter": "targetRegion eq 'westus'" }, "responses": { diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Metadata_GetEntity.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Metadata_GetEntity.json index 79ff76701198..14d433860556 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Metadata_GetEntity.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Metadata_GetEntity.json @@ -1,7 +1,7 @@ { "parameters": { "name": "status", - "api-version": "2022-10-01-preview" + "api-version": "2022-10-01" }, "responses": { "200": { diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Metadata_List.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Metadata_List.json index 22f7914d0007..d499b4b15b52 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Metadata_List.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Metadata_List.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-10-01-preview" + "api-version": "2022-10-01" }, "responses": { "200": { diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Operations_List.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Operations_List.json index d1152a2c50e4..0dc20eca804e 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Operations_List.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/Operations_List.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-10-01-preview" + "api-version": "2022-10-01" }, "responses": { "200": { diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/SecurityAdvisoryImpactedResources_ListBySubscriptionId_ListByEventId.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/SecurityAdvisoryImpactedResources_ListBySubscriptionId_ListByEventId.json index c38960087b34..acf71be96bf8 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/SecurityAdvisoryImpactedResources_ListBySubscriptionId_ListByEventId.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/SecurityAdvisoryImpactedResources_ListBySubscriptionId_ListByEventId.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "subscriptionId", "eventTrackingId": "BC_1-FXZ", - "api-version": "2022-10-01-preview" + "api-version": "2022-10-01" }, "responses": { "200": { diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/SecurityAdvisoryImpactedResources_ListByTenantId_ListByEventId.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/SecurityAdvisoryImpactedResources_ListByTenantId_ListByEventId.json index 189b219f8705..b31a80361a6a 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/SecurityAdvisoryImpactedResources_ListByTenantId_ListByEventId.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/SecurityAdvisoryImpactedResources_ListByTenantId_ListByEventId.json @@ -1,7 +1,7 @@ { "parameters": { "eventTrackingId": "BC_1-FXZ", - "api-version": "2022-10-01-preview" + "api-version": "2022-10-01" }, "responses": { "200": { From 111d6ca9130b9591a25bbf3a2643037b5e5846d8 Mon Sep 17 00:00:00 2001 From: Abhay Ohri Date: Wed, 1 Mar 2023 12:32:00 -0800 Subject: [PATCH 04/27] added missing api --- .../2022-10-01-preview/ResourceHealth.json | 147 +++++++++++++++++ ...ChildAvailabilityStatus_GetByResource.json | 38 +++++ .../ChildAvailabilityStatuses_List.json | 149 ++++++++++++++++++ .../examples/ChildResources_List.json | 89 +++++++++++ 4 files changed, 423 insertions(+) create mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/ChildAvailabilityStatus_GetByResource.json create mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/ChildAvailabilityStatuses_List.json create mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/ChildResources_List.json diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/ResourceHealth.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/ResourceHealth.json index ad1af4fad2a2..4abd996753e6 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/ResourceHealth.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/ResourceHealth.json @@ -881,6 +881,153 @@ } } }, + "/{resourceUri}/providers/Microsoft.ResourceHealth/childAvailabilityStatuses/current": { + "get": { + "tags": [ + "ChildAvailabilityStatuses" + ], + "operationId": "ChildAvailabilityStatuses_GetByResource", + "description": "Gets current availability status for a single resource", + "parameters": [ + { + "name": "resourceUri", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the resource, including the resource name and resource type. Currently the API only support one nesting level resource types : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/FilterParameter" + }, + { + "$ref": "#/parameters/ExpandParameter" + } + ], + "responses": { + "200": { + "description": "The body contains the current availability status for a single resource", + "schema": { + "$ref": "#/definitions/availabilityStatus" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GetCurrentHealthByResource": { + "$ref": "./examples/ChildAvailabilityStatus_GetByResource.json" + } + } + } + }, + "/{resourceUri}/providers/Microsoft.ResourceHealth/childAvailabilityStatuses": { + "get": { + "tags": [ + "ChildAvailabilityStatuses" + ], + "operationId": "ChildAvailabilityStatuses_List", + "description": "Lists the historical availability statuses for a single child resource. Use the nextLink property in the response to get the next page of availability status", + "parameters": [ + { + "name": "resourceUri", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the resource, including the resource name and resource type. Currently the API only support one nesting level resource types : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/FilterParameter" + }, + { + "$ref": "#/parameters/ExpandParameter" + } + ], + "responses": { + "200": { + "description": "The body contains the list of the historical availability statuses for a single child resource", + "schema": { + "$ref": "#/definitions/availabilityStatusListResult" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "GetHealthHistoryByResource": { + "$ref": "./examples/ChildAvailabilityStatuses_List.json" + } + } + } + }, + "/{resourceUri}/providers/Microsoft.ResourceHealth/childResources": { + "get": { + "tags": [ + "ChildResources" + ], + "operationId": "ChildResources_List", + "description": "Lists the all the children and its current health status for a parent resource. Use the nextLink property in the response to get the next page of children current health", + "parameters": [ + { + "name": "resourceUri", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the resource, including the resource name and resource type. Currently the API only support not nested parent resource type: /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/FilterParameter" + }, + { + "$ref": "#/parameters/ExpandParameter" + } + ], + "responses": { + "200": { + "description": "The body contains the list of the children's current availability statuses for a single resource which contains children", + "schema": { + "$ref": "#/definitions/availabilityStatusListResult" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "GetHealthHistoryByResource": { + "$ref": "./examples/ChildResources_List.json" + } + } + } + }, "/providers/Microsoft.ResourceHealth/emergingIssues": { "get": { "tags": [ diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/ChildAvailabilityStatus_GetByResource.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/ChildAvailabilityStatus_GetByResource.json new file mode 100644 index 000000000000..2ef421e9dc9b --- /dev/null +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/ChildAvailabilityStatus_GetByResource.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "resourceUri": "resourceUri", + "api-version": "2022-10-01", + "$expand": "recommendedactions" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/4/providers/Microsoft.ResourceHealth/child/availabilityStatuses/current", + "name": "current", + "type": "Microsoft.ResourceHealth/AvailabilityStatuses", + "location": "southcentralus", + "properties": { + "availabilityState": "Available", + "summary": "There aren't any known Azure platform problems affecting this virtual machine", + "detailedStatus": "", + "reasonType": "", + "occuredTime": "2018-11-30T23:37:44Z", + "reasonChronicity": "Persistent", + "reportedTime": "2018-12-04T01:19:11.955255Z", + "recommendedActions": [ + { + "action": "To start this virtual machine, open the resource blade and click Start", + "actionUrl": "<#ResourceBlade>", + "actionUrlText": "resource blade" + }, + { + "action": "If you are experiencing problems you believe are caused by Azure, contact support", + "actionUrl": "<#SupportCase>", + "actionUrlText": "contact support" + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/ChildAvailabilityStatuses_List.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/ChildAvailabilityStatuses_List.json new file mode 100644 index 000000000000..f6459d7c83d4 --- /dev/null +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/ChildAvailabilityStatuses_List.json @@ -0,0 +1,149 @@ +{ + "parameters": { + "resourceUri": "resourceUri", + "api-version": "2022-10-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/4/providers/Microsoft.ResourceHealth/availabilityStatuses/current", + "name": "current", + "type": "Microsoft.ResourceHealth/AvailabilityStatuses", + "location": "southcentralus", + "properties": { + "availabilityState": "Available", + "summary": "There aren't any known Azure platform problems affecting this virtual machine", + "detailedStatus": "", + "reasonType": "", + "recommendedActions": [ + { + "action": "If you're having problems, use the Troubleshoot tool to get recommended solutions.", + "actionUrl": "<#TroubleshootV2Blade>", + "actionUrlText": "Troubleshoot tool" + }, + { + "action": "If you are experiencing problems you believe are caused by Azure, contact support", + "actionUrl": "<#SupportCase>", + "actionUrlText": "contact support" + } + ], + "occuredTime": "2018-11-30T23:37:44Z", + "reasonChronicity": "Transient", + "reportedTime": "2018-12-05T19:45:45.6640838Z" + } + }, + { + "id": "/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/4/providers/Microsoft.ResourceHealth/availabilityStatuses/2018-11-30+23%3a36%3a03Z", + "name": "2018-11-30+23%3a36%3a03Z", + "type": "Microsoft.ResourceHealth/AvailabilityStatuses", + "location": "southcentralus", + "properties": { + "availabilityState": "Unavailable", + "summary": "This virtual machine is rebooting as requested by an authorized user or process. It will be back online after the reboot completes.", + "detailedStatus": "", + "reasonType": "Customer Initiated", + "rootCauseAttributionTime": "2018-11-30T23:36:02.514Z", + "recommendedActions": [ + { + "action": "Check back here for status updates", + "actionUrl": "", + "actionUrlText": "" + }, + { + "action": "If you are experiencing problems you believe are caused by Azure, contact support", + "actionUrl": "<#SupportCase>", + "actionUrlText": "contact support" + } + ], + "occuredTime": "2018-11-30T23:36:03Z", + "reasonChronicity": "Transient", + "resolutionETA": "2018-11-30T23:56:03Z" + } + }, + { + "id": "/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/4/providers/Microsoft.ResourceHealth/availabilityStatuses/2018-11-30+22%3a32%3a12Z", + "name": "2018-11-30+22%3a32%3a12Z", + "type": "Microsoft.ResourceHealth/AvailabilityStatuses", + "location": "southcentralus", + "properties": { + "availabilityState": "Available", + "summary": "There aren't any known Azure platform problems affecting this virtual machine", + "detailedStatus": "", + "reasonType": "", + "recommendedActions": [ + { + "action": "If you're having problems, use the Troubleshoot tool to get recommended solutions.", + "actionUrl": "<#TroubleshootV2Blade>", + "actionUrlText": "Troubleshoot tool" + }, + { + "action": "If you are experiencing problems you believe are caused by Azure, contact support", + "actionUrl": "<#SupportCase>", + "actionUrlText": "contact support" + } + ], + "occuredTime": "2018-11-30T22:32:12Z", + "reasonChronicity": "Transient" + } + }, + { + "id": "/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/4/providers/Microsoft.ResourceHealth/availabilityStatuses/2018-11-30+22%3a30%3a23Z", + "name": "2018-11-30+22%3a30%3a23Z", + "type": "Microsoft.ResourceHealth/AvailabilityStatuses", + "location": "southcentralus", + "properties": { + "availabilityState": "Unavailable", + "summary": "This virtual machine is rebooting as requested by an authorized user or process. It will be back online after the reboot completes.", + "detailedStatus": "", + "reasonType": "Customer Initiated", + "rootCauseAttributionTime": "2018-11-30T22:30:22.256Z", + "recommendedActions": [ + { + "action": "Check back here for status updates", + "actionUrl": "", + "actionUrlText": "" + }, + { + "action": "If you are experiencing problems you believe are caused by Azure, contact support", + "actionUrl": "<#SupportCase>", + "actionUrlText": "contact support" + } + ], + "occuredTime": "2018-11-30T22:30:23Z", + "reasonChronicity": "Transient", + "resolutionETA": "2018-11-30T22:50:23Z" + } + }, + { + "id": "/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/4/providers/Microsoft.ResourceHealth/availabilityStatuses/2018-11-21+00%3a00%3a00Z", + "name": "2018-11-21+00%3a00%3a00Z", + "type": "Microsoft.ResourceHealth/AvailabilityStatuses", + "location": "southcentralus", + "properties": { + "availabilityState": "Available", + "summary": "There aren't any known Azure platform problems affecting this virtual machine", + "detailedStatus": "", + "reasonType": "", + "recommendedActions": [ + { + "action": "If you're having problems, use the Troubleshoot tool to get recommended solutions.", + "actionUrl": "<#TroubleshootV2Blade>", + "actionUrlText": "Troubleshoot tool" + }, + { + "action": "If you are experiencing problems you believe are caused by Azure, contact support", + "actionUrl": "<#SupportCase>", + "actionUrlText": "contact support" + } + ], + "occuredTime": "2018-11-21T00:00:00Z", + "reasonChronicity": "Transient" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/ChildResources_List.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/ChildResources_List.json new file mode 100644 index 000000000000..56b22fe4cf08 --- /dev/null +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/ChildResources_List.json @@ -0,0 +1,89 @@ +{ + "parameters": { + "resourceUri": "resourceUri", + "api-version": "2022-10-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/0/providers/Microsoft.ResourceHealth/child/availabilityStatuses/current", + "name": "rhctest_0", + "type": "Microsoft.ResourceHealth/AvailabilityStatuses", + "location": "southcentralus", + "properties": { + "availabilityState": "Available", + "summary": "There aren't any known Azure platform problems affecting this virtual machine", + "detailedStatus": "", + "reasonType": "", + "occuredTime": "2018-11-30T23:37:43Z", + "reasonChronicity": "Persistent", + "reportedTime": "2018-12-04T01:18:25.575477Z" + } + }, + { + "id": "/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/3/providers/Microsoft.ResourceHealth/child/availabilityStatuses/current", + "name": "rhctest_3", + "type": "Microsoft.ResourceHealth/AvailabilityStatuses", + "location": "southcentralus", + "properties": { + "availabilityState": "Available", + "summary": "There aren't any known Azure platform problems affecting this virtual machine", + "detailedStatus": "", + "reasonType": "", + "occuredTime": "2018-11-30T23:37:41Z", + "reasonChronicity": "Persistent", + "reportedTime": "2018-12-04T01:18:25.575477Z" + } + }, + { + "id": "/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/1/providers/Microsoft.ResourceHealth/child/availabilityStatuses/current", + "name": "rhctest_1", + "type": "Microsoft.ResourceHealth/AvailabilityStatuses", + "location": "southcentralus", + "properties": { + "availabilityState": "Available", + "summary": "There aren't any known Azure platform problems affecting this virtual machine", + "detailedStatus": "", + "reasonType": "", + "occuredTime": "2018-11-30T23:37:48Z", + "reasonChronicity": "Persistent", + "reportedTime": "2018-12-04T01:18:25.575477Z" + } + }, + { + "id": "/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/2/providers/Microsoft.ResourceHealth/child/availabilityStatuses/current", + "name": "rhctest_2", + "type": "Microsoft.ResourceHealth/AvailabilityStatuses", + "location": "southcentralus", + "properties": { + "availabilityState": "Available", + "summary": "There aren't any known Azure platform problems affecting this virtual machine", + "detailedStatus": "", + "reasonType": "", + "occuredTime": "2018-11-30T23:37:43Z", + "reasonChronicity": "Persistent", + "reportedTime": "2018-12-04T01:18:25.575477Z" + } + }, + { + "id": "/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/4/providers/Microsoft.ResourceHealth/child/availabilityStatuses/current", + "name": "rhctest_4", + "type": "Microsoft.ResourceHealth/AvailabilityStatuses", + "location": "southcentralus", + "properties": { + "availabilityState": "Available", + "summary": "There aren't any known Azure platform problems affecting this virtual machine", + "detailedStatus": "", + "reasonType": "", + "occuredTime": "2018-11-30T23:37:44Z", + "reasonChronicity": "Persistent", + "reportedTime": "2018-12-04T01:18:25.575477Z" + } + } + ] + } + } + } +} \ No newline at end of file From d5d23e9ed8fbe2d25073212a7ca023fe6b46f9b7 Mon Sep 17 00:00:00 2001 From: Abhay Ohri Date: Wed, 1 Mar 2023 13:18:25 -0800 Subject: [PATCH 05/27] Revert "added missing api" This reverts commit 111d6ca9130b9591a25bbf3a2643037b5e5846d8. --- .../2022-10-01-preview/ResourceHealth.json | 147 ----------------- ...ChildAvailabilityStatus_GetByResource.json | 38 ----- .../ChildAvailabilityStatuses_List.json | 149 ------------------ .../examples/ChildResources_List.json | 89 ----------- 4 files changed, 423 deletions(-) delete mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/ChildAvailabilityStatus_GetByResource.json delete mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/ChildAvailabilityStatuses_List.json delete mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/ChildResources_List.json diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/ResourceHealth.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/ResourceHealth.json index 4abd996753e6..ad1af4fad2a2 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/ResourceHealth.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/ResourceHealth.json @@ -881,153 +881,6 @@ } } }, - "/{resourceUri}/providers/Microsoft.ResourceHealth/childAvailabilityStatuses/current": { - "get": { - "tags": [ - "ChildAvailabilityStatuses" - ], - "operationId": "ChildAvailabilityStatuses_GetByResource", - "description": "Gets current availability status for a single resource", - "parameters": [ - { - "name": "resourceUri", - "in": "path", - "required": true, - "type": "string", - "description": "The fully qualified ID of the resource, including the resource name and resource type. Currently the API only support one nesting level resource types : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}", - "x-ms-skip-url-encoding": true - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/FilterParameter" - }, - { - "$ref": "#/parameters/ExpandParameter" - } - ], - "responses": { - "200": { - "description": "The body contains the current availability status for a single resource", - "schema": { - "$ref": "#/definitions/availabilityStatus" - } - }, - "default": { - "description": "DefaultErrorResponse", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "GetCurrentHealthByResource": { - "$ref": "./examples/ChildAvailabilityStatus_GetByResource.json" - } - } - } - }, - "/{resourceUri}/providers/Microsoft.ResourceHealth/childAvailabilityStatuses": { - "get": { - "tags": [ - "ChildAvailabilityStatuses" - ], - "operationId": "ChildAvailabilityStatuses_List", - "description": "Lists the historical availability statuses for a single child resource. Use the nextLink property in the response to get the next page of availability status", - "parameters": [ - { - "name": "resourceUri", - "in": "path", - "required": true, - "type": "string", - "description": "The fully qualified ID of the resource, including the resource name and resource type. Currently the API only support one nesting level resource types : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}", - "x-ms-skip-url-encoding": true - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/FilterParameter" - }, - { - "$ref": "#/parameters/ExpandParameter" - } - ], - "responses": { - "200": { - "description": "The body contains the list of the historical availability statuses for a single child resource", - "schema": { - "$ref": "#/definitions/availabilityStatusListResult" - } - }, - "default": { - "description": "DefaultErrorResponse", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "GetHealthHistoryByResource": { - "$ref": "./examples/ChildAvailabilityStatuses_List.json" - } - } - } - }, - "/{resourceUri}/providers/Microsoft.ResourceHealth/childResources": { - "get": { - "tags": [ - "ChildResources" - ], - "operationId": "ChildResources_List", - "description": "Lists the all the children and its current health status for a parent resource. Use the nextLink property in the response to get the next page of children current health", - "parameters": [ - { - "name": "resourceUri", - "in": "path", - "required": true, - "type": "string", - "description": "The fully qualified ID of the resource, including the resource name and resource type. Currently the API only support not nested parent resource type: /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}", - "x-ms-skip-url-encoding": true - }, - { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/FilterParameter" - }, - { - "$ref": "#/parameters/ExpandParameter" - } - ], - "responses": { - "200": { - "description": "The body contains the list of the children's current availability statuses for a single resource which contains children", - "schema": { - "$ref": "#/definitions/availabilityStatusListResult" - } - }, - "default": { - "description": "DefaultErrorResponse", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "GetHealthHistoryByResource": { - "$ref": "./examples/ChildResources_List.json" - } - } - } - }, "/providers/Microsoft.ResourceHealth/emergingIssues": { "get": { "tags": [ diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/ChildAvailabilityStatus_GetByResource.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/ChildAvailabilityStatus_GetByResource.json deleted file mode 100644 index 2ef421e9dc9b..000000000000 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/ChildAvailabilityStatus_GetByResource.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "parameters": { - "resourceUri": "resourceUri", - "api-version": "2022-10-01", - "$expand": "recommendedactions" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/4/providers/Microsoft.ResourceHealth/child/availabilityStatuses/current", - "name": "current", - "type": "Microsoft.ResourceHealth/AvailabilityStatuses", - "location": "southcentralus", - "properties": { - "availabilityState": "Available", - "summary": "There aren't any known Azure platform problems affecting this virtual machine", - "detailedStatus": "", - "reasonType": "", - "occuredTime": "2018-11-30T23:37:44Z", - "reasonChronicity": "Persistent", - "reportedTime": "2018-12-04T01:19:11.955255Z", - "recommendedActions": [ - { - "action": "To start this virtual machine, open the resource blade and click Start", - "actionUrl": "<#ResourceBlade>", - "actionUrlText": "resource blade" - }, - { - "action": "If you are experiencing problems you believe are caused by Azure, contact support", - "actionUrl": "<#SupportCase>", - "actionUrlText": "contact support" - } - ] - } - } - } - } -} \ No newline at end of file diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/ChildAvailabilityStatuses_List.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/ChildAvailabilityStatuses_List.json deleted file mode 100644 index f6459d7c83d4..000000000000 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/ChildAvailabilityStatuses_List.json +++ /dev/null @@ -1,149 +0,0 @@ -{ - "parameters": { - "resourceUri": "resourceUri", - "api-version": "2022-10-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/4/providers/Microsoft.ResourceHealth/availabilityStatuses/current", - "name": "current", - "type": "Microsoft.ResourceHealth/AvailabilityStatuses", - "location": "southcentralus", - "properties": { - "availabilityState": "Available", - "summary": "There aren't any known Azure platform problems affecting this virtual machine", - "detailedStatus": "", - "reasonType": "", - "recommendedActions": [ - { - "action": "If you're having problems, use the Troubleshoot tool to get recommended solutions.", - "actionUrl": "<#TroubleshootV2Blade>", - "actionUrlText": "Troubleshoot tool" - }, - { - "action": "If you are experiencing problems you believe are caused by Azure, contact support", - "actionUrl": "<#SupportCase>", - "actionUrlText": "contact support" - } - ], - "occuredTime": "2018-11-30T23:37:44Z", - "reasonChronicity": "Transient", - "reportedTime": "2018-12-05T19:45:45.6640838Z" - } - }, - { - "id": "/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/4/providers/Microsoft.ResourceHealth/availabilityStatuses/2018-11-30+23%3a36%3a03Z", - "name": "2018-11-30+23%3a36%3a03Z", - "type": "Microsoft.ResourceHealth/AvailabilityStatuses", - "location": "southcentralus", - "properties": { - "availabilityState": "Unavailable", - "summary": "This virtual machine is rebooting as requested by an authorized user or process. It will be back online after the reboot completes.", - "detailedStatus": "", - "reasonType": "Customer Initiated", - "rootCauseAttributionTime": "2018-11-30T23:36:02.514Z", - "recommendedActions": [ - { - "action": "Check back here for status updates", - "actionUrl": "", - "actionUrlText": "" - }, - { - "action": "If you are experiencing problems you believe are caused by Azure, contact support", - "actionUrl": "<#SupportCase>", - "actionUrlText": "contact support" - } - ], - "occuredTime": "2018-11-30T23:36:03Z", - "reasonChronicity": "Transient", - "resolutionETA": "2018-11-30T23:56:03Z" - } - }, - { - "id": "/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/4/providers/Microsoft.ResourceHealth/availabilityStatuses/2018-11-30+22%3a32%3a12Z", - "name": "2018-11-30+22%3a32%3a12Z", - "type": "Microsoft.ResourceHealth/AvailabilityStatuses", - "location": "southcentralus", - "properties": { - "availabilityState": "Available", - "summary": "There aren't any known Azure platform problems affecting this virtual machine", - "detailedStatus": "", - "reasonType": "", - "recommendedActions": [ - { - "action": "If you're having problems, use the Troubleshoot tool to get recommended solutions.", - "actionUrl": "<#TroubleshootV2Blade>", - "actionUrlText": "Troubleshoot tool" - }, - { - "action": "If you are experiencing problems you believe are caused by Azure, contact support", - "actionUrl": "<#SupportCase>", - "actionUrlText": "contact support" - } - ], - "occuredTime": "2018-11-30T22:32:12Z", - "reasonChronicity": "Transient" - } - }, - { - "id": "/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/4/providers/Microsoft.ResourceHealth/availabilityStatuses/2018-11-30+22%3a30%3a23Z", - "name": "2018-11-30+22%3a30%3a23Z", - "type": "Microsoft.ResourceHealth/AvailabilityStatuses", - "location": "southcentralus", - "properties": { - "availabilityState": "Unavailable", - "summary": "This virtual machine is rebooting as requested by an authorized user or process. It will be back online after the reboot completes.", - "detailedStatus": "", - "reasonType": "Customer Initiated", - "rootCauseAttributionTime": "2018-11-30T22:30:22.256Z", - "recommendedActions": [ - { - "action": "Check back here for status updates", - "actionUrl": "", - "actionUrlText": "" - }, - { - "action": "If you are experiencing problems you believe are caused by Azure, contact support", - "actionUrl": "<#SupportCase>", - "actionUrlText": "contact support" - } - ], - "occuredTime": "2018-11-30T22:30:23Z", - "reasonChronicity": "Transient", - "resolutionETA": "2018-11-30T22:50:23Z" - } - }, - { - "id": "/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/4/providers/Microsoft.ResourceHealth/availabilityStatuses/2018-11-21+00%3a00%3a00Z", - "name": "2018-11-21+00%3a00%3a00Z", - "type": "Microsoft.ResourceHealth/AvailabilityStatuses", - "location": "southcentralus", - "properties": { - "availabilityState": "Available", - "summary": "There aren't any known Azure platform problems affecting this virtual machine", - "detailedStatus": "", - "reasonType": "", - "recommendedActions": [ - { - "action": "If you're having problems, use the Troubleshoot tool to get recommended solutions.", - "actionUrl": "<#TroubleshootV2Blade>", - "actionUrlText": "Troubleshoot tool" - }, - { - "action": "If you are experiencing problems you believe are caused by Azure, contact support", - "actionUrl": "<#SupportCase>", - "actionUrlText": "contact support" - } - ], - "occuredTime": "2018-11-21T00:00:00Z", - "reasonChronicity": "Transient" - } - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/ChildResources_List.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/ChildResources_List.json deleted file mode 100644 index 56b22fe4cf08..000000000000 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2022-10-01-preview/examples/ChildResources_List.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "parameters": { - "resourceUri": "resourceUri", - "api-version": "2022-10-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/0/providers/Microsoft.ResourceHealth/child/availabilityStatuses/current", - "name": "rhctest_0", - "type": "Microsoft.ResourceHealth/AvailabilityStatuses", - "location": "southcentralus", - "properties": { - "availabilityState": "Available", - "summary": "There aren't any known Azure platform problems affecting this virtual machine", - "detailedStatus": "", - "reasonType": "", - "occuredTime": "2018-11-30T23:37:43Z", - "reasonChronicity": "Persistent", - "reportedTime": "2018-12-04T01:18:25.575477Z" - } - }, - { - "id": "/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/3/providers/Microsoft.ResourceHealth/child/availabilityStatuses/current", - "name": "rhctest_3", - "type": "Microsoft.ResourceHealth/AvailabilityStatuses", - "location": "southcentralus", - "properties": { - "availabilityState": "Available", - "summary": "There aren't any known Azure platform problems affecting this virtual machine", - "detailedStatus": "", - "reasonType": "", - "occuredTime": "2018-11-30T23:37:41Z", - "reasonChronicity": "Persistent", - "reportedTime": "2018-12-04T01:18:25.575477Z" - } - }, - { - "id": "/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/1/providers/Microsoft.ResourceHealth/child/availabilityStatuses/current", - "name": "rhctest_1", - "type": "Microsoft.ResourceHealth/AvailabilityStatuses", - "location": "southcentralus", - "properties": { - "availabilityState": "Available", - "summary": "There aren't any known Azure platform problems affecting this virtual machine", - "detailedStatus": "", - "reasonType": "", - "occuredTime": "2018-11-30T23:37:48Z", - "reasonChronicity": "Persistent", - "reportedTime": "2018-12-04T01:18:25.575477Z" - } - }, - { - "id": "/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/2/providers/Microsoft.ResourceHealth/child/availabilityStatuses/current", - "name": "rhctest_2", - "type": "Microsoft.ResourceHealth/AvailabilityStatuses", - "location": "southcentralus", - "properties": { - "availabilityState": "Available", - "summary": "There aren't any known Azure platform problems affecting this virtual machine", - "detailedStatus": "", - "reasonType": "", - "occuredTime": "2018-11-30T23:37:43Z", - "reasonChronicity": "Persistent", - "reportedTime": "2018-12-04T01:18:25.575477Z" - } - }, - { - "id": "/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/4/providers/Microsoft.ResourceHealth/child/availabilityStatuses/current", - "name": "rhctest_4", - "type": "Microsoft.ResourceHealth/AvailabilityStatuses", - "location": "southcentralus", - "properties": { - "availabilityState": "Available", - "summary": "There aren't any known Azure platform problems affecting this virtual machine", - "detailedStatus": "", - "reasonType": "", - "occuredTime": "2018-11-30T23:37:44Z", - "reasonChronicity": "Persistent", - "reportedTime": "2018-12-04T01:18:25.575477Z" - } - } - ] - } - } - } -} \ No newline at end of file From 99f7003ea349f77c1b10395d4bd81ca472d9bb03 Mon Sep 17 00:00:00 2001 From: Abhay Ohri Date: Wed, 1 Mar 2023 13:23:01 -0800 Subject: [PATCH 06/27] added missing api --- .../stable/2022-10-01/ResourceHealth.json | 147 +++++++++++++++++ ...ChildAvailabilityStatus_GetByResource.json | 38 +++++ .../ChildAvailabilityStatuses_List.json | 149 ++++++++++++++++++ .../examples/ChildResources_List.json | 89 +++++++++++ 4 files changed, 423 insertions(+) create mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ChildAvailabilityStatus_GetByResource.json create mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ChildAvailabilityStatuses_List.json create mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ChildResources_List.json diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/ResourceHealth.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/ResourceHealth.json index 92e2877efedb..43e0232ba54d 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/ResourceHealth.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/ResourceHealth.json @@ -881,6 +881,153 @@ } } }, + "/{resourceUri}/providers/Microsoft.ResourceHealth/childAvailabilityStatuses/current": { + "get": { + "tags": [ + "ChildAvailabilityStatuses" + ], + "operationId": "ChildAvailabilityStatuses_GetByResource", + "description": "Gets current availability status for a single resource", + "parameters": [ + { + "name": "resourceUri", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the resource, including the resource name and resource type. Currently the API only support one nesting level resource types : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/FilterParameter" + }, + { + "$ref": "#/parameters/ExpandParameter" + } + ], + "responses": { + "200": { + "description": "The body contains the current availability status for a single resource", + "schema": { + "$ref": "#/definitions/availabilityStatus" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GetCurrentHealthByResource": { + "$ref": "./examples/ChildAvailabilityStatus_GetByResource.json" + } + } + } + }, + "/{resourceUri}/providers/Microsoft.ResourceHealth/childAvailabilityStatuses": { + "get": { + "tags": [ + "ChildAvailabilityStatuses" + ], + "operationId": "ChildAvailabilityStatuses_List", + "description": "Lists the historical availability statuses for a single child resource. Use the nextLink property in the response to get the next page of availability status", + "parameters": [ + { + "name": "resourceUri", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the resource, including the resource name and resource type. Currently the API only support one nesting level resource types : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/FilterParameter" + }, + { + "$ref": "#/parameters/ExpandParameter" + } + ], + "responses": { + "200": { + "description": "The body contains the list of the historical availability statuses for a single child resource", + "schema": { + "$ref": "#/definitions/availabilityStatusListResult" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "GetHealthHistoryByResource": { + "$ref": "./examples/ChildAvailabilityStatuses_List.json" + } + } + } + }, + "/{resourceUri}/providers/Microsoft.ResourceHealth/childResources": { + "get": { + "tags": [ + "ChildResources" + ], + "operationId": "ChildResources_List", + "description": "Lists the all the children and its current health status for a parent resource. Use the nextLink property in the response to get the next page of children current health", + "parameters": [ + { + "name": "resourceUri", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the resource, including the resource name and resource type. Currently the API only support not nested parent resource type: /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/FilterParameter" + }, + { + "$ref": "#/parameters/ExpandParameter" + } + ], + "responses": { + "200": { + "description": "The body contains the list of the children's current availability statuses for a single resource which contains children", + "schema": { + "$ref": "#/definitions/availabilityStatusListResult" + } + }, + "default": { + "description": "DefaultErrorResponse", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "GetHealthHistoryByResource": { + "$ref": "./examples/ChildResources_List.json" + } + } + } + }, "/providers/Microsoft.ResourceHealth/emergingIssues": { "get": { "tags": [ diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ChildAvailabilityStatus_GetByResource.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ChildAvailabilityStatus_GetByResource.json new file mode 100644 index 000000000000..2ef421e9dc9b --- /dev/null +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ChildAvailabilityStatus_GetByResource.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "resourceUri": "resourceUri", + "api-version": "2022-10-01", + "$expand": "recommendedactions" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/4/providers/Microsoft.ResourceHealth/child/availabilityStatuses/current", + "name": "current", + "type": "Microsoft.ResourceHealth/AvailabilityStatuses", + "location": "southcentralus", + "properties": { + "availabilityState": "Available", + "summary": "There aren't any known Azure platform problems affecting this virtual machine", + "detailedStatus": "", + "reasonType": "", + "occuredTime": "2018-11-30T23:37:44Z", + "reasonChronicity": "Persistent", + "reportedTime": "2018-12-04T01:19:11.955255Z", + "recommendedActions": [ + { + "action": "To start this virtual machine, open the resource blade and click Start", + "actionUrl": "<#ResourceBlade>", + "actionUrlText": "resource blade" + }, + { + "action": "If you are experiencing problems you believe are caused by Azure, contact support", + "actionUrl": "<#SupportCase>", + "actionUrlText": "contact support" + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ChildAvailabilityStatuses_List.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ChildAvailabilityStatuses_List.json new file mode 100644 index 000000000000..f6459d7c83d4 --- /dev/null +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ChildAvailabilityStatuses_List.json @@ -0,0 +1,149 @@ +{ + "parameters": { + "resourceUri": "resourceUri", + "api-version": "2022-10-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/4/providers/Microsoft.ResourceHealth/availabilityStatuses/current", + "name": "current", + "type": "Microsoft.ResourceHealth/AvailabilityStatuses", + "location": "southcentralus", + "properties": { + "availabilityState": "Available", + "summary": "There aren't any known Azure platform problems affecting this virtual machine", + "detailedStatus": "", + "reasonType": "", + "recommendedActions": [ + { + "action": "If you're having problems, use the Troubleshoot tool to get recommended solutions.", + "actionUrl": "<#TroubleshootV2Blade>", + "actionUrlText": "Troubleshoot tool" + }, + { + "action": "If you are experiencing problems you believe are caused by Azure, contact support", + "actionUrl": "<#SupportCase>", + "actionUrlText": "contact support" + } + ], + "occuredTime": "2018-11-30T23:37:44Z", + "reasonChronicity": "Transient", + "reportedTime": "2018-12-05T19:45:45.6640838Z" + } + }, + { + "id": "/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/4/providers/Microsoft.ResourceHealth/availabilityStatuses/2018-11-30+23%3a36%3a03Z", + "name": "2018-11-30+23%3a36%3a03Z", + "type": "Microsoft.ResourceHealth/AvailabilityStatuses", + "location": "southcentralus", + "properties": { + "availabilityState": "Unavailable", + "summary": "This virtual machine is rebooting as requested by an authorized user or process. It will be back online after the reboot completes.", + "detailedStatus": "", + "reasonType": "Customer Initiated", + "rootCauseAttributionTime": "2018-11-30T23:36:02.514Z", + "recommendedActions": [ + { + "action": "Check back here for status updates", + "actionUrl": "", + "actionUrlText": "" + }, + { + "action": "If you are experiencing problems you believe are caused by Azure, contact support", + "actionUrl": "<#SupportCase>", + "actionUrlText": "contact support" + } + ], + "occuredTime": "2018-11-30T23:36:03Z", + "reasonChronicity": "Transient", + "resolutionETA": "2018-11-30T23:56:03Z" + } + }, + { + "id": "/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/4/providers/Microsoft.ResourceHealth/availabilityStatuses/2018-11-30+22%3a32%3a12Z", + "name": "2018-11-30+22%3a32%3a12Z", + "type": "Microsoft.ResourceHealth/AvailabilityStatuses", + "location": "southcentralus", + "properties": { + "availabilityState": "Available", + "summary": "There aren't any known Azure platform problems affecting this virtual machine", + "detailedStatus": "", + "reasonType": "", + "recommendedActions": [ + { + "action": "If you're having problems, use the Troubleshoot tool to get recommended solutions.", + "actionUrl": "<#TroubleshootV2Blade>", + "actionUrlText": "Troubleshoot tool" + }, + { + "action": "If you are experiencing problems you believe are caused by Azure, contact support", + "actionUrl": "<#SupportCase>", + "actionUrlText": "contact support" + } + ], + "occuredTime": "2018-11-30T22:32:12Z", + "reasonChronicity": "Transient" + } + }, + { + "id": "/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/4/providers/Microsoft.ResourceHealth/availabilityStatuses/2018-11-30+22%3a30%3a23Z", + "name": "2018-11-30+22%3a30%3a23Z", + "type": "Microsoft.ResourceHealth/AvailabilityStatuses", + "location": "southcentralus", + "properties": { + "availabilityState": "Unavailable", + "summary": "This virtual machine is rebooting as requested by an authorized user or process. It will be back online after the reboot completes.", + "detailedStatus": "", + "reasonType": "Customer Initiated", + "rootCauseAttributionTime": "2018-11-30T22:30:22.256Z", + "recommendedActions": [ + { + "action": "Check back here for status updates", + "actionUrl": "", + "actionUrlText": "" + }, + { + "action": "If you are experiencing problems you believe are caused by Azure, contact support", + "actionUrl": "<#SupportCase>", + "actionUrlText": "contact support" + } + ], + "occuredTime": "2018-11-30T22:30:23Z", + "reasonChronicity": "Transient", + "resolutionETA": "2018-11-30T22:50:23Z" + } + }, + { + "id": "/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/4/providers/Microsoft.ResourceHealth/availabilityStatuses/2018-11-21+00%3a00%3a00Z", + "name": "2018-11-21+00%3a00%3a00Z", + "type": "Microsoft.ResourceHealth/AvailabilityStatuses", + "location": "southcentralus", + "properties": { + "availabilityState": "Available", + "summary": "There aren't any known Azure platform problems affecting this virtual machine", + "detailedStatus": "", + "reasonType": "", + "recommendedActions": [ + { + "action": "If you're having problems, use the Troubleshoot tool to get recommended solutions.", + "actionUrl": "<#TroubleshootV2Blade>", + "actionUrlText": "Troubleshoot tool" + }, + { + "action": "If you are experiencing problems you believe are caused by Azure, contact support", + "actionUrl": "<#SupportCase>", + "actionUrlText": "contact support" + } + ], + "occuredTime": "2018-11-21T00:00:00Z", + "reasonChronicity": "Transient" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ChildResources_List.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ChildResources_List.json new file mode 100644 index 000000000000..56b22fe4cf08 --- /dev/null +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ChildResources_List.json @@ -0,0 +1,89 @@ +{ + "parameters": { + "resourceUri": "resourceUri", + "api-version": "2022-10-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/0/providers/Microsoft.ResourceHealth/child/availabilityStatuses/current", + "name": "rhctest_0", + "type": "Microsoft.ResourceHealth/AvailabilityStatuses", + "location": "southcentralus", + "properties": { + "availabilityState": "Available", + "summary": "There aren't any known Azure platform problems affecting this virtual machine", + "detailedStatus": "", + "reasonType": "", + "occuredTime": "2018-11-30T23:37:43Z", + "reasonChronicity": "Persistent", + "reportedTime": "2018-12-04T01:18:25.575477Z" + } + }, + { + "id": "/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/3/providers/Microsoft.ResourceHealth/child/availabilityStatuses/current", + "name": "rhctest_3", + "type": "Microsoft.ResourceHealth/AvailabilityStatuses", + "location": "southcentralus", + "properties": { + "availabilityState": "Available", + "summary": "There aren't any known Azure platform problems affecting this virtual machine", + "detailedStatus": "", + "reasonType": "", + "occuredTime": "2018-11-30T23:37:41Z", + "reasonChronicity": "Persistent", + "reportedTime": "2018-12-04T01:18:25.575477Z" + } + }, + { + "id": "/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/1/providers/Microsoft.ResourceHealth/child/availabilityStatuses/current", + "name": "rhctest_1", + "type": "Microsoft.ResourceHealth/AvailabilityStatuses", + "location": "southcentralus", + "properties": { + "availabilityState": "Available", + "summary": "There aren't any known Azure platform problems affecting this virtual machine", + "detailedStatus": "", + "reasonType": "", + "occuredTime": "2018-11-30T23:37:48Z", + "reasonChronicity": "Persistent", + "reportedTime": "2018-12-04T01:18:25.575477Z" + } + }, + { + "id": "/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/2/providers/Microsoft.ResourceHealth/child/availabilityStatuses/current", + "name": "rhctest_2", + "type": "Microsoft.ResourceHealth/AvailabilityStatuses", + "location": "southcentralus", + "properties": { + "availabilityState": "Available", + "summary": "There aren't any known Azure platform problems affecting this virtual machine", + "detailedStatus": "", + "reasonType": "", + "occuredTime": "2018-11-30T23:37:43Z", + "reasonChronicity": "Persistent", + "reportedTime": "2018-12-04T01:18:25.575477Z" + } + }, + { + "id": "/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/4/providers/Microsoft.ResourceHealth/child/availabilityStatuses/current", + "name": "rhctest_4", + "type": "Microsoft.ResourceHealth/AvailabilityStatuses", + "location": "southcentralus", + "properties": { + "availabilityState": "Available", + "summary": "There aren't any known Azure platform problems affecting this virtual machine", + "detailedStatus": "", + "reasonType": "", + "occuredTime": "2018-11-30T23:37:44Z", + "reasonChronicity": "Persistent", + "reportedTime": "2018-12-04T01:18:25.575477Z" + } + } + ] + } + } + } +} \ No newline at end of file From ece7d828ada4c9e16027936bfff3d5e8c6caf495 Mon Sep 17 00:00:00 2001 From: Abhay Ohri Date: Wed, 1 Mar 2023 17:13:28 -0800 Subject: [PATCH 07/27] added error message suppression to readme --- specification/resourcehealth/resource-manager/readme.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/specification/resourcehealth/resource-manager/readme.md b/specification/resourcehealth/resource-manager/readme.md index 64330faa91a7..89d3d6656731 100644 --- a/specification/resourcehealth/resource-manager/readme.md +++ b/specification/resourcehealth/resource-manager/readme.md @@ -27,6 +27,7 @@ These are the global settings for the ResourceHealth API. ``` yaml openapi-type: arm tag: package-2022-10 +azure-validator: true ``` @@ -118,7 +119,13 @@ These settings apply only when `--tag=package-2020-05-01` is specified on the co input-file: - Microsoft.ResourceHealth/stable/2020-05-01/ResourceHealth.json ``` - +### Suppression +``` yaml +directive: + - suppress: DefaultErrorResponseSchema + from: ResourceHealth.json + reason: Changing the Error Response would be considered a breaking change +``` --- # Code Generation From 9965ee89c0f76d6d22530c93d8c15650d40dba37 Mon Sep 17 00:00:00 2001 From: Abhay Ohri Date: Wed, 1 Mar 2023 17:31:28 -0800 Subject: [PATCH 08/27] prettier fix --- .../examples/ChildAvailabilityStatus_GetByResource.json | 2 +- .../2022-10-01/examples/ChildAvailabilityStatuses_List.json | 2 +- .../stable/2022-10-01/examples/ChildResources_List.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ChildAvailabilityStatus_GetByResource.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ChildAvailabilityStatus_GetByResource.json index 2ef421e9dc9b..94850c31a5f8 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ChildAvailabilityStatus_GetByResource.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ChildAvailabilityStatus_GetByResource.json @@ -35,4 +35,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ChildAvailabilityStatuses_List.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ChildAvailabilityStatuses_List.json index f6459d7c83d4..c07559eecfb6 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ChildAvailabilityStatuses_List.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ChildAvailabilityStatuses_List.json @@ -146,4 +146,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ChildResources_List.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ChildResources_List.json index 56b22fe4cf08..c61cd2294179 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ChildResources_List.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ChildResources_List.json @@ -86,4 +86,4 @@ } } } -} \ No newline at end of file +} From b9e82b0bfb1767f8b66be65066bc423771176708 Mon Sep 17 00:00:00 2001 From: Abhay Ohri Date: Wed, 1 Mar 2023 17:31:59 -0800 Subject: [PATCH 09/27] added missing fields for s360 items --- .../stable/2022-10-01/ResourceHealth.json | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/ResourceHealth.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/ResourceHealth.json index 43e0232ba54d..23c06f778340 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/ResourceHealth.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/ResourceHealth.json @@ -1214,6 +1214,10 @@ "type": "string", "description": "The id of the Incident" }, + "reason": { + "type": "string", + "description": "The reason for the Incident" + }, "article": { "type": "object", "description": "Article of event.", @@ -1221,6 +1225,14 @@ "articleContent": { "type": "string", "description": "Article content of event." + }, + "articleId": { + "type": "string", + "description": "Article Id" + }, + "parameters": { + "type": "object", + "description": "It provides a map of parameter name and value for portal extension blade to produce lik for given service health event." } } }, @@ -1734,6 +1746,10 @@ "type": "string", "description": "When a context field is set to Platform, this field will reflect if the event was planned or unplanned. If the context field does not have a value of Platform, then this field will be ignored." }, + "articleId": { + "type": "string", + "description": "The Artice Id" + }, "rootCauseAttributionTime": { "type": "string", "description": "When the resource's availabilityState is Unavailable, it provides the Timestamp for when the health impacting event was received.", @@ -1889,6 +1905,10 @@ "type": "string", "description": "Link to the action" }, + "_ActionUrl.Comment": { + "type": "string", + "description": "the comment for the Action" + }, "actionUrlText": { "type": "string", "description": "Substring of action, it describes which text should host the action url." From e75a64b26925bf28793d662f1867ffae6b623009 Mon Sep 17 00:00:00 2001 From: Abhay Ohri Date: Wed, 1 Mar 2023 17:33:54 -0800 Subject: [PATCH 10/27] updated description --- .../stable/2022-10-01/ResourceHealth.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/ResourceHealth.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/ResourceHealth.json index 23c06f778340..d7a68bc9a8c0 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/ResourceHealth.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/ResourceHealth.json @@ -1232,7 +1232,7 @@ }, "parameters": { "type": "object", - "description": "It provides a map of parameter name and value for portal extension blade to produce lik for given service health event." + "description": "It provides a map of parameter name and value" } } }, From fe876b1929dc81fc37035101cf5a3b43dc357134 Mon Sep 17 00:00:00 2001 From: Abhay Ohri Date: Sun, 5 Mar 2023 22:41:46 -0800 Subject: [PATCH 11/27] spelling fix --- .../stable/2022-10-01/ResourceHealth.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/ResourceHealth.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/ResourceHealth.json index d7a68bc9a8c0..3cfcae37f141 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/ResourceHealth.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/ResourceHealth.json @@ -1748,7 +1748,7 @@ }, "articleId": { "type": "string", - "description": "The Artice Id" + "description": "The Article Id" }, "rootCauseAttributionTime": { "type": "string", From 220764bd5349cd657e0043d5ccc09dd6dc2e4a3b Mon Sep 17 00:00:00 2001 From: Abhay Ohri Date: Mon, 6 Mar 2023 11:19:51 -0800 Subject: [PATCH 12/27] added missing properties to all stable api versions --- .../stable/2015-01-01/resourcehealth.json | 16 +++++++++++ .../stable/2017-07-01/resourcehealth.json | 16 +++++++++++ .../stable/2018-07-01/ResourceHealth.json | 28 +++++++++++++++++++ .../stable/2020-05-01/ResourceHealth.json | 16 +++++++++++ 4 files changed, 76 insertions(+) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2015-01-01/resourcehealth.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2015-01-01/resourcehealth.json index 0e5e742ad659..30637aa061db 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2015-01-01/resourcehealth.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2015-01-01/resourcehealth.json @@ -466,6 +466,18 @@ "type": "string", "description": "When the resource's availabilityState is Unavailable, it describes where the health impacting event was originated. Examples are planned, unplanned, user initiated or an outage etc." }, + "context": { + "type": "string", + "description": "When an event is created, it can either be triggered by a customer or the platform of the resource and this field will illustrate that. This field is connected to the category field in this object." + }, + "category": { + "type": "string", + "description": "When a context field is set to Platform, this field will reflect if the event was planned or unplanned. If the context field does not have a value of Platform, then this field will be ignored." + }, + "articleId": { + "type": "string", + "description": "The Article Id" + }, "rootCauseAttributionTime": { "type": "string", "description": "When the resource's availabilityState is Unavailable, it provides the Timestamp for when the health impacting event was received.", @@ -551,6 +563,10 @@ "type": "string", "description": "Link to the action" }, + "_ActionUrl.Comment": { + "type": "string", + "description": "the comment for the Action" + }, "actionUrlText": { "type": "string", "description": "Substring of action, it describes which text should host the action url." diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2017-07-01/resourcehealth.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2017-07-01/resourcehealth.json index ce960dafa53c..2fd2899c2e97 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2017-07-01/resourcehealth.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2017-07-01/resourcehealth.json @@ -538,6 +538,18 @@ "type": "string", "description": "When the resource's availabilityState is Unavailable, it describes where the health impacting event was originated. Examples are planned, unplanned, user initiated or an outage etc." }, + "context": { + "type": "string", + "description": "When an event is created, it can either be triggered by a customer or the platform of the resource and this field will illustrate that. This field is connected to the category field in this object." + }, + "category": { + "type": "string", + "description": "When a context field is set to Platform, this field will reflect if the event was planned or unplanned. If the context field does not have a value of Platform, then this field will be ignored." + }, + "articleId": { + "type": "string", + "description": "The Article Id" + }, "rootCauseAttributionTime": { "type": "string", "description": "When the resource's availabilityState is Unavailable, it provides the Timestamp for when the health impacting event was received.", @@ -635,6 +647,10 @@ "type": "string", "description": "Link to the action" }, + "_ActionUrl.Comment": { + "type": "string", + "description": "the comment for the Action" + }, "actionUrlText": { "type": "string", "description": "Substring of action, it describes which text should host the action url." diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2018-07-01/ResourceHealth.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2018-07-01/ResourceHealth.json index dcc9abdf5f32..fe792a8e5613 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2018-07-01/ResourceHealth.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2018-07-01/ResourceHealth.json @@ -603,6 +603,10 @@ "modelAsString": true } }, + "reason": { + "type": "string", + "description": "The reason for the Incident" + }, "article": { "type": "object", "description": "Article of event.", @@ -610,6 +614,14 @@ "articleContent": { "type": "string", "description": "Article content of event." + }, + "articleId": { + "type": "string", + "description": "Article Id" + }, + "parameters": { + "type": "object", + "description": "It provides a map of parameter name and value" } } }, @@ -918,6 +930,18 @@ "type": "string", "description": "When the resource's availabilityState is Unavailable, it describes where the health impacting event was originated. Examples are planned, unplanned, user initiated or an outage etc." }, + "context": { + "type": "string", + "description": "When an event is created, it can either be triggered by a customer or the platform of the resource and this field will illustrate that. This field is connected to the category field in this object." + }, + "category": { + "type": "string", + "description": "When a context field is set to Platform, this field will reflect if the event was planned or unplanned. If the context field does not have a value of Platform, then this field will be ignored." + }, + "articleId": { + "type": "string", + "description": "The Article Id" + }, "rootCauseAttributionTime": { "type": "string", "description": "When the resource's availabilityState is Unavailable, it provides the Timestamp for when the health impacting event was received.", @@ -1015,6 +1039,10 @@ "type": "string", "description": "Link to the action" }, + "_ActionUrl.Comment": { + "type": "string", + "description": "the comment for the Action" + }, "actionUrlText": { "type": "string", "description": "Substring of action, it describes which text should host the action url." diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/ResourceHealth.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/ResourceHealth.json index eeae536ea146..efe50d9ca6ac 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/ResourceHealth.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/ResourceHealth.json @@ -388,6 +388,18 @@ "type": "string", "description": "When the resource's availabilityState is Unavailable, it describes where the health impacting event was originated. Examples are planned, unplanned, user initiated or an outage etc." }, + "context": { + "type": "string", + "description": "When an event is created, it can either be triggered by a customer or the platform of the resource and this field will illustrate that. This field is connected to the category field in this object." + }, + "category": { + "type": "string", + "description": "When a context field is set to Platform, this field will reflect if the event was planned or unplanned. If the context field does not have a value of Platform, then this field will be ignored." + }, + "articleId": { + "type": "string", + "description": "The Article Id" + }, "rootCauseAttributionTime": { "type": "string", "description": "When the resource's availabilityState is Unavailable, it provides the Timestamp for when the health impacting event was received.", @@ -537,6 +549,10 @@ "type": "string", "description": "Link to the action" }, + "_ActionUrl.Comment": { + "type": "string", + "description": "the comment for the Action" + }, "actionUrlText": { "type": "string", "description": "Substring of action, it describes which text should host the action url." From 68a12b0fb5d94b58bae08f5f71820c445cd09b68 Mon Sep 17 00:00:00 2001 From: Abhay Ohri Date: Mon, 6 Mar 2023 11:26:13 -0800 Subject: [PATCH 13/27] Revert "added missing properties to all stable api versions" This reverts commit 220764bd5349cd657e0043d5ccc09dd6dc2e4a3b. --- .../stable/2015-01-01/resourcehealth.json | 16 ----------- .../stable/2017-07-01/resourcehealth.json | 16 ----------- .../stable/2018-07-01/ResourceHealth.json | 28 ------------------- .../stable/2020-05-01/ResourceHealth.json | 16 ----------- 4 files changed, 76 deletions(-) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2015-01-01/resourcehealth.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2015-01-01/resourcehealth.json index 30637aa061db..0e5e742ad659 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2015-01-01/resourcehealth.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2015-01-01/resourcehealth.json @@ -466,18 +466,6 @@ "type": "string", "description": "When the resource's availabilityState is Unavailable, it describes where the health impacting event was originated. Examples are planned, unplanned, user initiated or an outage etc." }, - "context": { - "type": "string", - "description": "When an event is created, it can either be triggered by a customer or the platform of the resource and this field will illustrate that. This field is connected to the category field in this object." - }, - "category": { - "type": "string", - "description": "When a context field is set to Platform, this field will reflect if the event was planned or unplanned. If the context field does not have a value of Platform, then this field will be ignored." - }, - "articleId": { - "type": "string", - "description": "The Article Id" - }, "rootCauseAttributionTime": { "type": "string", "description": "When the resource's availabilityState is Unavailable, it provides the Timestamp for when the health impacting event was received.", @@ -563,10 +551,6 @@ "type": "string", "description": "Link to the action" }, - "_ActionUrl.Comment": { - "type": "string", - "description": "the comment for the Action" - }, "actionUrlText": { "type": "string", "description": "Substring of action, it describes which text should host the action url." diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2017-07-01/resourcehealth.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2017-07-01/resourcehealth.json index 2fd2899c2e97..ce960dafa53c 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2017-07-01/resourcehealth.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2017-07-01/resourcehealth.json @@ -538,18 +538,6 @@ "type": "string", "description": "When the resource's availabilityState is Unavailable, it describes where the health impacting event was originated. Examples are planned, unplanned, user initiated or an outage etc." }, - "context": { - "type": "string", - "description": "When an event is created, it can either be triggered by a customer or the platform of the resource and this field will illustrate that. This field is connected to the category field in this object." - }, - "category": { - "type": "string", - "description": "When a context field is set to Platform, this field will reflect if the event was planned or unplanned. If the context field does not have a value of Platform, then this field will be ignored." - }, - "articleId": { - "type": "string", - "description": "The Article Id" - }, "rootCauseAttributionTime": { "type": "string", "description": "When the resource's availabilityState is Unavailable, it provides the Timestamp for when the health impacting event was received.", @@ -647,10 +635,6 @@ "type": "string", "description": "Link to the action" }, - "_ActionUrl.Comment": { - "type": "string", - "description": "the comment for the Action" - }, "actionUrlText": { "type": "string", "description": "Substring of action, it describes which text should host the action url." diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2018-07-01/ResourceHealth.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2018-07-01/ResourceHealth.json index fe792a8e5613..dcc9abdf5f32 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2018-07-01/ResourceHealth.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2018-07-01/ResourceHealth.json @@ -603,10 +603,6 @@ "modelAsString": true } }, - "reason": { - "type": "string", - "description": "The reason for the Incident" - }, "article": { "type": "object", "description": "Article of event.", @@ -614,14 +610,6 @@ "articleContent": { "type": "string", "description": "Article content of event." - }, - "articleId": { - "type": "string", - "description": "Article Id" - }, - "parameters": { - "type": "object", - "description": "It provides a map of parameter name and value" } } }, @@ -930,18 +918,6 @@ "type": "string", "description": "When the resource's availabilityState is Unavailable, it describes where the health impacting event was originated. Examples are planned, unplanned, user initiated or an outage etc." }, - "context": { - "type": "string", - "description": "When an event is created, it can either be triggered by a customer or the platform of the resource and this field will illustrate that. This field is connected to the category field in this object." - }, - "category": { - "type": "string", - "description": "When a context field is set to Platform, this field will reflect if the event was planned or unplanned. If the context field does not have a value of Platform, then this field will be ignored." - }, - "articleId": { - "type": "string", - "description": "The Article Id" - }, "rootCauseAttributionTime": { "type": "string", "description": "When the resource's availabilityState is Unavailable, it provides the Timestamp for when the health impacting event was received.", @@ -1039,10 +1015,6 @@ "type": "string", "description": "Link to the action" }, - "_ActionUrl.Comment": { - "type": "string", - "description": "the comment for the Action" - }, "actionUrlText": { "type": "string", "description": "Substring of action, it describes which text should host the action url." diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/ResourceHealth.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/ResourceHealth.json index efe50d9ca6ac..eeae536ea146 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/ResourceHealth.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/ResourceHealth.json @@ -388,18 +388,6 @@ "type": "string", "description": "When the resource's availabilityState is Unavailable, it describes where the health impacting event was originated. Examples are planned, unplanned, user initiated or an outage etc." }, - "context": { - "type": "string", - "description": "When an event is created, it can either be triggered by a customer or the platform of the resource and this field will illustrate that. This field is connected to the category field in this object." - }, - "category": { - "type": "string", - "description": "When a context field is set to Platform, this field will reflect if the event was planned or unplanned. If the context field does not have a value of Platform, then this field will be ignored." - }, - "articleId": { - "type": "string", - "description": "The Article Id" - }, "rootCauseAttributionTime": { "type": "string", "description": "When the resource's availabilityState is Unavailable, it provides the Timestamp for when the health impacting event was received.", @@ -549,10 +537,6 @@ "type": "string", "description": "Link to the action" }, - "_ActionUrl.Comment": { - "type": "string", - "description": "the comment for the Action" - }, "actionUrlText": { "type": "string", "description": "Substring of action, it describes which text should host the action url." From 9a816296e50cf60ddfe9b5cd60facad24adfbb6a Mon Sep 17 00:00:00 2001 From: Abhay Ohri Date: Sun, 19 Mar 2023 22:44:17 -0700 Subject: [PATCH 14/27] fixes from pr for resourcehealth.json file --- .../stable/2022-10-01/ResourceHealth.json | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/ResourceHealth.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/ResourceHealth.json index 3cfcae37f141..6c925200a968 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/ResourceHealth.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/ResourceHealth.json @@ -88,7 +88,7 @@ "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" @@ -1853,7 +1853,7 @@ "x-ms-identifiers": [ "name" ], - "description": "List of operations available in the resourcehealth resource provider." + "description": "List of operations available in the Microsoft.ResourceHealth resource provider." } }, "required": [ @@ -1862,7 +1862,7 @@ "description": "Lists the operations response." }, "operation": { - "description": "Operation available in the resourcehealth resource provider.", + "description": "Operation available in the Microsoft.ResourceHealth resource provider.", "type": "object", "properties": { "name": { @@ -1911,7 +1911,7 @@ }, "actionUrlText": { "type": "string", - "description": "Substring of action, it describes which text should host the action url." + "description": "Substring of action, it describes which text should host the action URL." } } }, @@ -2110,7 +2110,7 @@ }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/Resource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" } ] }, @@ -2277,14 +2277,6 @@ }, "x-ms-parameter-location": "method" }, - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group.", - "x-ms-parameter-location": "method" - }, "FilterParameter": { "name": "$filter", "in": "query", From d8bab82be523fe321fba4bbd44f0b9ada8bc42c3 Mon Sep 17 00:00:00 2001 From: Abhay Ohri Date: Sun, 19 Mar 2023 23:18:01 -0700 Subject: [PATCH 15/27] updated child avialbility example uri --- .../examples/ChildAvailabilityStatus_GetByResource.json | 2 +- .../2022-10-01/examples/ChildAvailabilityStatuses_List.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ChildAvailabilityStatus_GetByResource.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ChildAvailabilityStatus_GetByResource.json index 94850c31a5f8..c78ba0153fd9 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ChildAvailabilityStatus_GetByResource.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ChildAvailabilityStatus_GetByResource.json @@ -1,6 +1,6 @@ { "parameters": { - "resourceUri": "resourceUri", + "resourceUri": "subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/4", "api-version": "2022-10-01", "$expand": "recommendedactions" }, diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ChildAvailabilityStatuses_List.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ChildAvailabilityStatuses_List.json index c07559eecfb6..214e09a1f86e 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ChildAvailabilityStatuses_List.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/examples/ChildAvailabilityStatuses_List.json @@ -1,6 +1,6 @@ { "parameters": { - "resourceUri": "resourceUri", + "resourceUri": "subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/4", "api-version": "2022-10-01" }, "responses": { From 160ccaaf521144def0906f657d1c18462a146090 Mon Sep 17 00:00:00 2001 From: Abhay Ohri Date: Mon, 20 Mar 2023 00:03:59 -0700 Subject: [PATCH 16/27] added suppression for _ActionUrl --- specification/resourcehealth/resource-manager/readme.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/specification/resourcehealth/resource-manager/readme.md b/specification/resourcehealth/resource-manager/readme.md index 89d3d6656731..c2f6c897794f 100644 --- a/specification/resourcehealth/resource-manager/readme.md +++ b/specification/resourcehealth/resource-manager/readme.md @@ -125,6 +125,10 @@ directive: - suppress: DefaultErrorResponseSchema from: ResourceHealth.json reason: Changing the Error Response would be considered a breaking change + - suppress: DefinitionsPropertiesNamesCamelCase + from: ResourceHealth.json + where: $.definitions.recommendedAction + reason: field _ActionUrl.Comment has existed for several years but has been missing from swagger. s360= https://portal.azure-devex-tools.com/amekpis/correctness/detail?errorId=647F3368-7670-4ADF-9D8D-6A6F02006D3F ``` --- From 7c449284c1bff87c9e497d86162525846c665046 Mon Sep 17 00:00:00 2001 From: Abhay Ohri Date: Mon, 20 Mar 2023 00:13:44 -0700 Subject: [PATCH 17/27] added suppression for _ActionUrl --- specification/resourcehealth/resource-manager/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/resourcehealth/resource-manager/readme.md b/specification/resourcehealth/resource-manager/readme.md index c2f6c897794f..6239ebf8af82 100644 --- a/specification/resourcehealth/resource-manager/readme.md +++ b/specification/resourcehealth/resource-manager/readme.md @@ -127,7 +127,7 @@ directive: reason: Changing the Error Response would be considered a breaking change - suppress: DefinitionsPropertiesNamesCamelCase from: ResourceHealth.json - where: $.definitions.recommendedAction + where: $.definitions.recommendedAction._ActionUrl.Comment reason: field _ActionUrl.Comment has existed for several years but has been missing from swagger. s360= https://portal.azure-devex-tools.com/amekpis/correctness/detail?errorId=647F3368-7670-4ADF-9D8D-6A6F02006D3F ``` --- From 809c958cf6febd52236c13459b724752f3d82768 Mon Sep 17 00:00:00 2001 From: Abhay Ohri Date: Mon, 20 Mar 2023 00:33:46 -0700 Subject: [PATCH 18/27] added suppression for _ActionUrl --- specification/resourcehealth/resource-manager/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/resourcehealth/resource-manager/readme.md b/specification/resourcehealth/resource-manager/readme.md index 6239ebf8af82..89edf74b7e72 100644 --- a/specification/resourcehealth/resource-manager/readme.md +++ b/specification/resourcehealth/resource-manager/readme.md @@ -127,7 +127,7 @@ directive: reason: Changing the Error Response would be considered a breaking change - suppress: DefinitionsPropertiesNamesCamelCase from: ResourceHealth.json - where: $.definitions.recommendedAction._ActionUrl.Comment + where: $.definitions.recommendedAction["_ActionUrl.Comment"] reason: field _ActionUrl.Comment has existed for several years but has been missing from swagger. s360= https://portal.azure-devex-tools.com/amekpis/correctness/detail?errorId=647F3368-7670-4ADF-9D8D-6A6F02006D3F ``` --- From 2997a9248c957ea8791423bb2729190006a48ede Mon Sep 17 00:00:00 2001 From: Abhay Ohri Date: Mon, 20 Mar 2023 00:44:13 -0700 Subject: [PATCH 19/27] added suppression for _ActionUrl --- specification/resourcehealth/resource-manager/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/resourcehealth/resource-manager/readme.md b/specification/resourcehealth/resource-manager/readme.md index 89edf74b7e72..e9cddbf6a732 100644 --- a/specification/resourcehealth/resource-manager/readme.md +++ b/specification/resourcehealth/resource-manager/readme.md @@ -127,7 +127,7 @@ directive: reason: Changing the Error Response would be considered a breaking change - suppress: DefinitionsPropertiesNamesCamelCase from: ResourceHealth.json - where: $.definitions.recommendedAction["_ActionUrl.Comment"] + where: $.definitions.recommendedAction."_ActionUrl.Comment" reason: field _ActionUrl.Comment has existed for several years but has been missing from swagger. s360= https://portal.azure-devex-tools.com/amekpis/correctness/detail?errorId=647F3368-7670-4ADF-9D8D-6A6F02006D3F ``` --- From 15141402bf4deb1d6ae3582adcad32b2817c5f2a Mon Sep 17 00:00:00 2001 From: Abhay Ohri Date: Mon, 20 Mar 2023 00:49:27 -0700 Subject: [PATCH 20/27] added suppression for _ActionUrl --- specification/resourcehealth/resource-manager/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/resourcehealth/resource-manager/readme.md b/specification/resourcehealth/resource-manager/readme.md index e9cddbf6a732..bb69135bdee0 100644 --- a/specification/resourcehealth/resource-manager/readme.md +++ b/specification/resourcehealth/resource-manager/readme.md @@ -127,7 +127,7 @@ directive: reason: Changing the Error Response would be considered a breaking change - suppress: DefinitionsPropertiesNamesCamelCase from: ResourceHealth.json - where: $.definitions.recommendedAction."_ActionUrl.Comment" + where: $.definitions.recommendedAction["_ActionUrl*"] reason: field _ActionUrl.Comment has existed for several years but has been missing from swagger. s360= https://portal.azure-devex-tools.com/amekpis/correctness/detail?errorId=647F3368-7670-4ADF-9D8D-6A6F02006D3F ``` --- From b2011b5fcca41474b97c049b9a95c7a54f794c26 Mon Sep 17 00:00:00 2001 From: Abhay Ohri Date: Wed, 22 Mar 2023 14:03:44 -0700 Subject: [PATCH 21/27] added suppression for _ActionUrl --- specification/resourcehealth/resource-manager/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/resourcehealth/resource-manager/readme.md b/specification/resourcehealth/resource-manager/readme.md index bb69135bdee0..c2f6c897794f 100644 --- a/specification/resourcehealth/resource-manager/readme.md +++ b/specification/resourcehealth/resource-manager/readme.md @@ -127,7 +127,7 @@ directive: reason: Changing the Error Response would be considered a breaking change - suppress: DefinitionsPropertiesNamesCamelCase from: ResourceHealth.json - where: $.definitions.recommendedAction["_ActionUrl*"] + where: $.definitions.recommendedAction reason: field _ActionUrl.Comment has existed for several years but has been missing from swagger. s360= https://portal.azure-devex-tools.com/amekpis/correctness/detail?errorId=647F3368-7670-4ADF-9D8D-6A6F02006D3F ``` --- From c175f7a9e1faa9a652e75a8fdeb9eae47cf4220d Mon Sep 17 00:00:00 2001 From: Abhay Ohri Date: Wed, 29 Mar 2023 13:55:42 -0700 Subject: [PATCH 22/27] linter wrnings --- .../stable/2022-10-01/ResourceHealth.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/ResourceHealth.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/ResourceHealth.json index 6c925200a968..7a60b4af170f 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/ResourceHealth.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2022-10-01/ResourceHealth.json @@ -922,7 +922,7 @@ } }, "x-ms-examples": { - "GetCurrentHealthByResource": { + "GetChildCurrentHealthByResource": { "$ref": "./examples/ChildAvailabilityStatus_GetByResource.json" } } @@ -972,7 +972,7 @@ "nextLinkName": "nextLink" }, "x-ms-examples": { - "GetHealthHistoryByResource": { + "GetChildHealthHistoryByResource": { "$ref": "./examples/ChildAvailabilityStatuses_List.json" } } @@ -1022,7 +1022,7 @@ "nextLinkName": "nextLink" }, "x-ms-examples": { - "GetHealthHistoryByResource": { + "GetCurrentChildHealthByResource": { "$ref": "./examples/ChildResources_List.json" } } From 9f92d09b0b66917054ab6d74d476b02a84869849 Mon Sep 17 00:00:00 2001 From: Abhay Ohri Date: Wed, 29 Mar 2023 22:11:44 -0700 Subject: [PATCH 23/27] update readme for .net sdk --- .../resourcehealth/resource-manager/readme.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/specification/resourcehealth/resource-manager/readme.md b/specification/resourcehealth/resource-manager/readme.md index c2f6c897794f..307ff9bf1b44 100644 --- a/specification/resourcehealth/resource-manager/readme.md +++ b/specification/resourcehealth/resource-manager/readme.md @@ -154,6 +154,21 @@ swagger-to-sdk: - repo: azure-powershell ``` +## C# + +These settings apply only when `--csharp` is specified on the command line. +Please also specify `--csharp-sdks-folder=`. + +```yaml $(csharp) +csharp: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + payload-flattening-threshold: 1 + clear-output-folder: true + client-side-validation: false + namespace: [[ResourceProviderName]] + output-folder: $(csharp-sdks-folder)/[[ServiceName]]/management/[[ResourceProviderName]]/GeneratedProtocol + ## Go See configuration in [readme.go.md](./readme.go.md) From ee820e921d6fef8ef189fa880d462f54c918efa9 Mon Sep 17 00:00:00 2001 From: Abhay Ohri Date: Wed, 29 Mar 2023 22:21:46 -0700 Subject: [PATCH 24/27] update readme for .net sdk --- specification/resourcehealth/resource-manager/readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/resourcehealth/resource-manager/readme.md b/specification/resourcehealth/resource-manager/readme.md index 307ff9bf1b44..61c477dfb899 100644 --- a/specification/resourcehealth/resource-manager/readme.md +++ b/specification/resourcehealth/resource-manager/readme.md @@ -166,8 +166,8 @@ csharp: payload-flattening-threshold: 1 clear-output-folder: true client-side-validation: false - namespace: [[ResourceProviderName]] - output-folder: $(csharp-sdks-folder)/[[ServiceName]]/management/[[ResourceProviderName]]/GeneratedProtocol + namespace: ResourceHealth + output-folder: $(csharp-sdks-folder)/resourcehealth/management/Microsoft.ResourceHealth/GeneratedProtocol ## Go From ab2a830818cbc47b0f8794e772b6e8d63fa628ce Mon Sep 17 00:00:00 2001 From: Abhay Ohri Date: Wed, 29 Mar 2023 22:41:27 -0700 Subject: [PATCH 25/27] update readme for sdks --- .../resourcehealth/resource-manager/readme.md | 28 +++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/specification/resourcehealth/resource-manager/readme.md b/specification/resourcehealth/resource-manager/readme.md index 61c477dfb899..1db3ae1acc28 100644 --- a/specification/resourcehealth/resource-manager/readme.md +++ b/specification/resourcehealth/resource-manager/readme.md @@ -168,14 +168,38 @@ csharp: client-side-validation: false namespace: ResourceHealth output-folder: $(csharp-sdks-folder)/resourcehealth/management/Microsoft.ResourceHealth/GeneratedProtocol +``` ## Go -See configuration in [readme.go.md](./readme.go.md) +These settings apply only when `--go` is specified on the command line. + +```yaml $(go) && $(track2) +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +module-name: sdk/resourcemanager/resourcehealth/armresourcehealth +module: github.com/Azure/azure-sdk-for-go/$(module-name) +output-folder: $(go-sdk-folder)/$(module-name) +``` ## Python -See configuration in [readme.python.md](./readme.python.md) +These settings apply only when `--python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(python) +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +package-name: azure-mgmt-resourcehealth +namespace: azure.mgmt.resourcehealth +package-version: 1.0.0b1 +clear-output-folder: true +``` + +``` yaml $(python) +no-namespace-folders: true +output-folder: $(python-sdks-folder)/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth +``` ## Java From 8acd7b11464791efdface9ae9fd5b0c5f9885f58 Mon Sep 17 00:00:00 2001 From: Abhay Ohri Date: Wed, 29 Mar 2023 22:58:50 -0700 Subject: [PATCH 26/27] trying suppression for actionurl.comment --- specification/resourcehealth/resource-manager/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/resourcehealth/resource-manager/readme.md b/specification/resourcehealth/resource-manager/readme.md index 1db3ae1acc28..10fc46155d4a 100644 --- a/specification/resourcehealth/resource-manager/readme.md +++ b/specification/resourcehealth/resource-manager/readme.md @@ -127,7 +127,7 @@ directive: reason: Changing the Error Response would be considered a breaking change - suppress: DefinitionsPropertiesNamesCamelCase from: ResourceHealth.json - where: $.definitions.recommendedAction + where: $.definitions.recommendedAction.properties["ActionUrl.Comment"] reason: field _ActionUrl.Comment has existed for several years but has been missing from swagger. s360= https://portal.azure-devex-tools.com/amekpis/correctness/detail?errorId=647F3368-7670-4ADF-9D8D-6A6F02006D3F ``` --- From 57ac5f9280e433f016a75b3602d4731ce53a2733 Mon Sep 17 00:00:00 2001 From: Abhay Ohri Date: Thu, 30 Mar 2023 21:51:30 -0700 Subject: [PATCH 27/27] added suppression for _ActionUrl --- specification/resourcehealth/resource-manager/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/resourcehealth/resource-manager/readme.md b/specification/resourcehealth/resource-manager/readme.md index 10fc46155d4a..c6f8139bbe04 100644 --- a/specification/resourcehealth/resource-manager/readme.md +++ b/specification/resourcehealth/resource-manager/readme.md @@ -127,7 +127,7 @@ directive: reason: Changing the Error Response would be considered a breaking change - suppress: DefinitionsPropertiesNamesCamelCase from: ResourceHealth.json - where: $.definitions.recommendedAction.properties["ActionUrl.Comment"] + where: $.definitions.recommendedAction.properties["_ActionUrl.Comment"] reason: field _ActionUrl.Comment has existed for several years but has been missing from swagger. s360= https://portal.azure-devex-tools.com/amekpis/correctness/detail?errorId=647F3368-7670-4ADF-9D8D-6A6F02006D3F ``` ---