From 10df0ceb0972c2ea6b3aa1799a8835fdc5dcd021 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Tue, 3 Aug 2021 11:00:21 -0700 Subject: [PATCH 01/68] Add files via upload Stable - 2020-05-01 API version AvailabilityStatusesAPI --- .../stable/2020-05-01/ResourceHealth.json | 1156 +++++++++++++++++ .../AvailabilityStatus_GetByResource.json | 40 + .../examples/AvailabilityStatuses_List.json | 60 + ...ilabilityStatuses_ListByResourceGroup.json | 73 ++ ...labilityStatuses_ListBySubscriptionId.json | 72 + 5 files changed, 1401 insertions(+) create mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/ResourceHealth.json create mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatus_GetByResource.json create mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_List.json create mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_ListByResourceGroup.json create mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_ListBySubscriptionId.json 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 new file mode 100644 index 000000000000..1cb80a509be5 --- /dev/null +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/ResourceHealth.json @@ -0,0 +1,1156 @@ +{ + "swagger": "2.0", + "info": { + "version": "2020-05-01", + "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": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/FilterParameter" + }, + { + "$ref": "#/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": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/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" + } + } + } + }, + "/{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": "#/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": "#/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" + } + } + } + } + "get": { + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "description": "Lists available operations for the resourcehealth resource provider", + "parameters": [ + { + "$ref": "#/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" + } + } + } + } + } + }, + "definitions": { + "properties": { + "value": { + "type": "array", + "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." + }, + "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 + } + }, + "article": { + "type": "object", + "description": "Article of event.", + "properties": { + "articleContent": { + "type": "string", + "description": "Article content of event." + } + } + }, + "links": { + "type": "array", + "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", + "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", + "description": "Recommended actions for the service health event.", + "items": { + "type": "object", + "description": "Recommended action for the service health event.", + "properties": { + "groupId": { + "type": "integer", + "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", + "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", + "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" + } + } + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" + } + ] + }, + "link": { + "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." + } + } + }, + "faq": { + "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." + } + } + }, + "impact": { + "description": "Azure service impacted by the service health event.", + "properties": { + "impactedService": { + "type": "string", + "description": "Impacted service name." + }, + "impactedRegions": { + "type": "array", + "description": "List regions impacted by the service health event.", + "items": { + "$ref": "#/definitions/impactedServiceRegion" + } + } + } + }, + "impactedServiceRegion": { + "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", + "description": "List subscription impacted by the service health event.", + "items": { + "type": "string", + "description": "Subscription 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", + "description": "List of updates for given service health event.", + "items": { + "$ref": "#/definitions/update" + } + } + } + }, + "update": { + "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" + } + } + }, + "impactedResourceListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/impactedResourceStatus" + }, + "description": "The list of impactedResourceStatus." + }, + "nextLink": { + "type": "string", + "description": "The URI to fetch the next page of impactedResourceStatus." + } + }, + "required": [ + "value" + ], + "description": "The List impactedResourceStatus operation response." + }, + "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 + } + }, + "occuredTime": { + "type": "string", + "description": "Timestamp for when last change in health status occurred.", + "format": "date-time" + } + } + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" + } + ] + }, + "availabilityStatusListResult": { + "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 + } + }, + "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." + }, + "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": { + "unavailableOccurredTime": { + "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" + }, + "unavailabilitySummary": { + "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" + } + }, + "serviceImpactingEvents": { + "type": "array", + "description": "Lists the service impacting events that may be affecting the health of the resource.", + "items": { + "$ref": "#/definitions/serviceImpactingEvent" + } + } + } + } + } + }, + "recommendedAction": { + "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": { + "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": { + "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": { + "description": "Object of impacted region.", + "properties": { + "id": { + "type": "string", + "description": "The impacted region id." + }, + "name": { + "type": "string", + "description": "The impacted region name." + } + } + }, + "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." + } + } + }, + "statusActiveEvent": { + "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." + } + } + }, + "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 + } + } + } + "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" + } + } + } + } + "description": "The metadata supported value detail.", + "type": "object", + "properties": { + "id": { + "description": "The id.", + "type": "string" + }, + "displayName": { + "description": "The display name.", + "type": "string" + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." + }, + "IssueNameParameter": { + "name": "issueName", + "in": "path", + "description": "The name of the emerging issue.", + "required": true, + "type": "string", + "enum": [ + "default" + ], + "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" + }, + "EventIdParameter": { + "name": "eventId", + "in": "path", + "required": true, + "type": "string", + "description": "EventId for the Service health event" + } + } +} diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatus_GetByResource.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatus_GetByResource.json new file mode 100644 index 000000000000..3230b20a723e --- /dev/null +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatus_GetByResource.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "resourceUri": "resourceUri", + "api-version": "2020-05-01", + "$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", + "summary": "We're sorry, we couldn't automatically recover your virtual machine", + "reasonType": "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/2020-05-01/examples/AvailabilityStatuses_List.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_List.json new file mode 100644 index 000000000000..03b7e6c9397e --- /dev/null +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_List.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "resourceUri": "resourceUri", + "api-version": "2020-05-01" + }, + "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", + "summary": "We're sorry, we couldn't automatically recover your virtual machine", + "reasonType": "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/2020-05-01/examples/AvailabilityStatuses_ListByResourceGroup.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_ListByResourceGroup.json new file mode 100644 index 000000000000..680b777c2cc1 --- /dev/null +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_ListByResourceGroup.json @@ -0,0 +1,73 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourceGroupName", + "api-version": "2020-05-01", + "$expand": "recommendedactions" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.ResourceHealth/AvailabilityStatueses/current", + "name": "current", + "type": "Microsoft.ResourceHealth/AvailabilityStatuses", + "location": "eastus", + "properties": { + "availabilityState": "Available", + "summary": "Vm is available", + "reasonType": "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": { + "unavailableOccurredTime": "2017-02-28T00:48:00Z", + "resolvedTime": "2017-02-28T00:49:00Z", + "unavailabilitySummary": "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", + "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/2020-05-01/examples/AvailabilityStatuses_ListBySubscriptionId.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_ListBySubscriptionId.json new file mode 100644 index 000000000000..634d06f3f386 --- /dev/null +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_ListBySubscriptionId.json @@ -0,0 +1,72 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "api-version": "2020-05-01", + "$expand": "recommendedactions" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.ResourceHealth/AvailabilityStatueses/current", + "name": "current", + "type": "Microsoft.ResourceHealth/AvailabilityStatuses", + "location": "eastus", + "properties": { + "availabilityState": "Available", + "summary": "Vm is available", + "reasonType": "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": { + "unavailableOccurredTime": "2017-02-28T00:48:00Z", + "resolvedTime": "2017-02-28T00:49:00Z", + "unavailabilitySummary": "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", + "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}" + } + } + } +} From aaae4101c85a1dbc2525eb5ae6348e871723c482 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Tue, 3 Aug 2021 11:01:04 -0700 Subject: [PATCH 02/68] Add files via upload Preview - 2020-05-01 API version AvailabilityStatusesAPI --- .../preview/2020-05-01/ResourceHealth.json | 1156 +++++++++++++++ .../2020-05-01/ResourceHealth.json.bak | 1261 +++++++++++++++++ .../AvailabilityStatus_GetByResource.json | 40 + .../examples/AvailabilityStatuses_List.json | 60 + ...ilabilityStatuses_ListByResourceGroup.json | 73 + ...labilityStatuses_ListBySubscriptionId.json | 72 + 6 files changed, 2662 insertions(+) create mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json create mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json.bak create mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/examples/AvailabilityStatus_GetByResource.json create mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/examples/AvailabilityStatuses_List.json create mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/examples/AvailabilityStatuses_ListByResourceGroup.json create mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/examples/AvailabilityStatuses_ListBySubscriptionId.json diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json new file mode 100644 index 000000000000..3a1f8c9399d4 --- /dev/null +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json @@ -0,0 +1,1156 @@ +{ + "swagger": "2.0", + "info": { + "version": "2020-05-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": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/FilterParameter" + }, + { + "$ref": "#/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": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/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" + } + } + } + }, + "/{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": "#/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": "#/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" + } + } + } + } + "get": { + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "description": "Lists available operations for the resourcehealth resource provider", + "parameters": [ + { + "$ref": "#/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" + } + } + } + } + } + }, + "definitions": { + "properties": { + "value": { + "type": "array", + "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." + }, + "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 + } + }, + "article": { + "type": "object", + "description": "Article of event.", + "properties": { + "articleContent": { + "type": "string", + "description": "Article content of event." + } + } + }, + "links": { + "type": "array", + "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", + "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", + "description": "Recommended actions for the service health event.", + "items": { + "type": "object", + "description": "Recommended action for the service health event.", + "properties": { + "groupId": { + "type": "integer", + "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", + "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", + "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" + } + } + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" + } + ] + }, + "link": { + "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." + } + } + }, + "faq": { + "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." + } + } + }, + "impact": { + "description": "Azure service impacted by the service health event.", + "properties": { + "impactedService": { + "type": "string", + "description": "Impacted service name." + }, + "impactedRegions": { + "type": "array", + "description": "List regions impacted by the service health event.", + "items": { + "$ref": "#/definitions/impactedServiceRegion" + } + } + } + }, + "impactedServiceRegion": { + "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", + "description": "List subscription impacted by the service health event.", + "items": { + "type": "string", + "description": "Subscription 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", + "description": "List of updates for given service health event.", + "items": { + "$ref": "#/definitions/update" + } + } + } + }, + "update": { + "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" + } + } + }, + "impactedResourceListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/impactedResourceStatus" + }, + "description": "The list of impactedResourceStatus." + }, + "nextLink": { + "type": "string", + "description": "The URI to fetch the next page of impactedResourceStatus." + } + }, + "required": [ + "value" + ], + "description": "The List impactedResourceStatus operation response." + }, + "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 + } + }, + "occuredTime": { + "type": "string", + "description": "Timestamp for when last change in health status occurred.", + "format": "date-time" + } + } + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" + } + ] + }, + "availabilityStatusListResult": { + "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 + } + }, + "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." + }, + "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": { + "unavailableOccurredTime": { + "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" + }, + "unavailabilitySummary": { + "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" + } + }, + "serviceImpactingEvents": { + "type": "array", + "description": "Lists the service impacting events that may be affecting the health of the resource.", + "items": { + "$ref": "#/definitions/serviceImpactingEvent" + } + } + } + } + } + }, + "recommendedAction": { + "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": { + "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": { + "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": { + "description": "Object of impacted region.", + "properties": { + "id": { + "type": "string", + "description": "The impacted region id." + }, + "name": { + "type": "string", + "description": "The impacted region name." + } + } + }, + "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." + } + } + }, + "statusActiveEvent": { + "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." + } + } + }, + "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 + } + } + } + "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" + } + } + } + } + "description": "The metadata supported value detail.", + "type": "object", + "properties": { + "id": { + "description": "The id.", + "type": "string" + }, + "displayName": { + "description": "The display name.", + "type": "string" + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." + }, + "IssueNameParameter": { + "name": "issueName", + "in": "path", + "description": "The name of the emerging issue.", + "required": true, + "type": "string", + "enum": [ + "default" + ], + "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" + }, + "EventIdParameter": { + "name": "eventId", + "in": "path", + "required": true, + "type": "string", + "description": "EventId for the Service health event" + } + } +} diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json.bak b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json.bak new file mode 100644 index 000000000000..08f7ea87b63d --- /dev/null +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json.bak @@ -0,0 +1,1261 @@ +{ + "swagger": "2.0", + "info": { + "version": "2020-05-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": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/FilterParameter" + }, + { + "$ref": "#/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": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/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" + } + } + } + }, + "/{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": "#/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": "#/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" + } + } + } + } + "get": { + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "description": "Lists available operations for the resourcehealth resource provider", + "parameters": [ + { + "$ref": "#/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" + } + } + } + } + } + }, + "definitions": { + "properties": { + "value": { + "type": "array", + "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." + }, + "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 + } + }, + "article": { + "type": "object", + "description": "Article of event.", + "properties": { + "articleContent": { + "type": "string", + "description": "Article content of event." + } + } + }, + "links": { + "type": "array", + "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", + "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", + "description": "Recommended actions for the service health event.", + "items": { + "type": "object", + "description": "Recommended action for the service health event.", + "properties": { + "groupId": { + "type": "integer", + "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", + "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", + "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" + } + } + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" + } + ] + }, + "link": { + "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." + } + } + }, + "faq": { + "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." + } + } + }, + "impact": { + "description": "Azure service impacted by the service health event.", + "properties": { + "impactedService": { + "type": "string", + "description": "Impacted service name." + }, + "impactedRegions": { + "type": "array", + "description": "List regions impacted by the service health event.", + "items": { + "$ref": "#/definitions/impactedServiceRegion" + } + } + } + }, + "impactedServiceRegion": { + "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", + "description": "List subscription impacted by the service health event.", + "items": { + "type": "string", + "description": "Subscription 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", + "description": "List of updates for given service health event.", + "items": { + "$ref": "#/definitions/update" + } + } + } + }, + "update": { + "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" + } + } + }, + "impactedResourceListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/impactedResourceStatus" + }, + "description": "The list of impactedResourceStatus." + }, + "nextLink": { + "type": "string", + "description": "The URI to fetch the next page of impactedResourceStatus." + } + }, + "required": [ + "value" + ], + "description": "The List impactedResourceStatus operation response." + }, + "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 + } + }, + "occuredTime": { + "type": "string", + "description": "Timestamp for when last change in health status occurred.", + "format": "date-time" + } + } + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" + } + ] + }, + "availabilityStatusListResult": { + "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 + } + }, + "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." + }, + "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": { + "unavailableOccurredTime": { + "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" + }, + "unavailabilitySummary": { + "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" + } + }, + "serviceImpactingEvents": { + "type": "array", + "description": "Lists the service impacting events that may be affecting the health of the resource.", + "items": { + "$ref": "#/definitions/serviceImpactingEvent" + } + } + } + } + } + }, + "recommendedAction": { + "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": { + "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": { + "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": { + "description": "Object of impacted region.", + "properties": { + "id": { + "type": "string", + "description": "The impacted region id." + }, + "name": { + "type": "string", + "description": "The impacted region name." + } + } + }, + "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." + } + } + }, + "statusActiveEvent": { + "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." + } + } + }, + "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/v1/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." + }, + "statusActiveEvents": { + "type": "array", + "items": { + "$ref": "#/definitions/statusActiveEvent" + }, + "description": "The list of emerging issues of active event type." + } + } + }, + "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" + } + } + }, + "operationListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/operation" + }, + "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.", + "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." + } + } + } + } + }, + "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 + } + } + } + "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" + } + } + } + } + "description": "The metadata supported value detail.", + "type": "object", + "properties": { + "id": { + "description": "The id.", + "type": "string" + }, + "displayName": { + "description": "The display name.", + "type": "string" + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." + }, + "IssueNameParameter": { + "name": "issueName", + "in": "path", + "description": "The name of the emerging issue.", + "required": true, + "type": "string", + "enum": [ + "default" + ], + "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" + }, + "EventIdParameter": { + "name": "eventId", + "in": "path", + "required": true, + "type": "string", + "description": "EventId for the Service health event" + } + } +} diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/examples/AvailabilityStatus_GetByResource.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/examples/AvailabilityStatus_GetByResource.json new file mode 100644 index 000000000000..b1f3fca7e9f9 --- /dev/null +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/examples/AvailabilityStatus_GetByResource.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "resourceUri": "resourceUri", + "api-version": "2020-05-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", + "summary": "We're sorry, we couldn't automatically recover your virtual machine", + "reasonType": "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/preview/2020-05-01/examples/AvailabilityStatuses_List.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/examples/AvailabilityStatuses_List.json new file mode 100644 index 000000000000..55ba129395bb --- /dev/null +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/examples/AvailabilityStatuses_List.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "resourceUri": "resourceUri", + "api-version": "2020-05-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", + "summary": "We're sorry, we couldn't automatically recover your virtual machine", + "reasonType": "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/preview/2020-05-01/examples/AvailabilityStatuses_ListByResourceGroup.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/examples/AvailabilityStatuses_ListByResourceGroup.json new file mode 100644 index 000000000000..2f272ff3363c --- /dev/null +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/examples/AvailabilityStatuses_ListByResourceGroup.json @@ -0,0 +1,73 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourceGroupName", + "api-version": "2020-05-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", + "summary": "Vm is available", + "reasonType": "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": { + "unavailableOccurredTime": "2017-02-28T00:48:00Z", + "resolvedTime": "2017-02-28T00:49:00Z", + "unavailabilitySummary": "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", + "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/preview/2020-05-01/examples/AvailabilityStatuses_ListBySubscriptionId.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/examples/AvailabilityStatuses_ListBySubscriptionId.json new file mode 100644 index 000000000000..1e9c2afc0a12 --- /dev/null +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/examples/AvailabilityStatuses_ListBySubscriptionId.json @@ -0,0 +1,72 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "api-version": "2020-05-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", + "summary": "Vm is available", + "reasonType": "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": { + "unavailableOccurredTime": "2017-02-28T00:48:00Z", + "resolvedTime": "2017-02-28T00:49:00Z", + "unavailabilitySummary": "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", + "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}" + } + } + } +} From d96aa26767ec0722fa8830de477f079c6e51a2e0 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Tue, 3 Aug 2021 12:08:00 -0700 Subject: [PATCH 03/68] Update readme.md fixing the readme file --- .../resourcehealth/resource-manager/readme.md | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/specification/resourcehealth/resource-manager/readme.md b/specification/resourcehealth/resource-manager/readme.md index d361e0fc1f44..80f420a9eb3a 100644 --- a/specification/resourcehealth/resource-manager/readme.md +++ b/specification/resourcehealth/resource-manager/readme.md @@ -58,6 +58,15 @@ input-file: - Microsoft.ResourceHealth/preview/2018-08-01/ResourceHealth.json ``` +### Tag: package-2020-05-preview + +These settings apply only when `--tag=package-2020-05-preview` is specified on the command line. + +``` yaml $(tag) == 'package-2020-05-preview' +input-file: +- Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json +``` + ### Tag: package-2018-07-01 These settings apply only when `--tag=package-2018-07-01` is specified on the command line. @@ -121,6 +130,7 @@ batch: - tag: package-2017-07 - tag: package-2015-01 - tag: package-2018-08-preview + - tag: package-2020-05-preview - tag: package-2018-07-01 ``` @@ -161,6 +171,18 @@ java: regenerate-manager: true generate-interface: true ``` +### Tag: package-2020-05-preview and java + +These settings apply only when `--tag=package-2020-05-preview --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2018-08-preview' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.resourcehealth.v2020_05_01_preview + output-folder: $(azure-libraries-for-java-folder)/sdk/resourcehealth/mgmt-v2020_05_01_preview +regenerate-manager: true +generate-interface: true +``` ### Tag: package-2018-07-01 and java These settings apply only when `--tag=package-2018-07-01 --java` is specified on the command line. From 8a1e57ac54c15af773afad8145deaca8d9ccdd78 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Tue, 3 Aug 2021 12:13:47 -0700 Subject: [PATCH 04/68] Update readme.md adding stable 202-05-01 API version --- .../resourcehealth/resource-manager/readme.md | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/specification/resourcehealth/resource-manager/readme.md b/specification/resourcehealth/resource-manager/readme.md index 80f420a9eb3a..b5fca7927740 100644 --- a/specification/resourcehealth/resource-manager/readme.md +++ b/specification/resourcehealth/resource-manager/readme.md @@ -76,6 +76,14 @@ input-file: - Microsoft.ResourceHealth/stable/2018-07-01/ResourceHealth.json ``` +### Tag: package-2020-05-01 + +These settings apply only when `--tag=package-2020-05-01` is specified on the command line. + +``` yaml $(tag) == 'package-2020-05-01' +input-file: +- Microsoft.ResourceHealth/stable/2020-05-01/ResourceHealth.json +``` --- # Code Generation @@ -132,6 +140,7 @@ batch: - tag: package-2018-08-preview - tag: package-2020-05-preview - tag: package-2018-07-01 + - tag: package-2020-05-01 ``` ### Tag: package-2017-07 and java @@ -196,6 +205,18 @@ regenerate-manager: true generate-interface: true ``` +### Tag: package-2020-05-01 and java + +These settings apply only when `--tag=package-2020-05-01 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2020-05-01' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.resourcehealth.v2020_05_01 + output-folder: $(azure-libraries-for-java-folder)/sdk/resourcehealth/mgmt-v2020_05_01 +regenerate-manager: true +generate-interface: true +``` From c4f16f4f3fc938e063476239483a6609829b2b93 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Tue, 3 Aug 2021 13:42:29 -0700 Subject: [PATCH 05/68] Update ResourceHealth.json fixed the PR checks for ResourceHealth.json Stable 2020-05-01 API version --- .../stable/2020-05-01/ResourceHealth.json | 316 ------------------ 1 file changed, 316 deletions(-) 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 1cb80a509be5..d08e8c827a45 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 @@ -221,254 +221,8 @@ } } } - "get": { - "tags": [ - "Operations" - ], - "operationId": "Operations_List", - "description": "Lists available operations for the resourcehealth resource provider", - "parameters": [ - { - "$ref": "#/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" - } - } - } - } - } }, "definitions": { - "properties": { - "value": { - "type": "array", - "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." - }, - "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 - } - }, - "article": { - "type": "object", - "description": "Article of event.", - "properties": { - "articleContent": { - "type": "string", - "description": "Article content of event." - } - } - }, - "links": { - "type": "array", - "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", - "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", - "description": "Recommended actions for the service health event.", - "items": { - "type": "object", - "description": "Recommended action for the service health event.", - "properties": { - "groupId": { - "type": "integer", - "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", - "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", - "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" - } - } - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" - } - ] - }, "link": { "description": "Useful links for service health event.", "properties": { @@ -934,26 +688,6 @@ "description": "The impacted region name." } } - }, - "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." - } - } }, "statusActiveEvent": { "description": "Active event type of emerging issue.", @@ -1044,56 +778,6 @@ } } } - "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" - } - } - } - } - "description": "The metadata supported value detail.", - "type": "object", - "properties": { - "id": { - "description": "The id.", - "type": "string" - }, - "displayName": { - "description": "The display name.", - "type": "string" - } - } - } }, "parameters": { "SubscriptionIdParameter": { From 63b5be308ed9333b01b517ede120148003716bb6 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Tue, 3 Aug 2021 13:43:12 -0700 Subject: [PATCH 06/68] Delete ResourceHealth.json.bak deleting .bak file --- .../2020-05-01/ResourceHealth.json.bak | 1261 ----------------- 1 file changed, 1261 deletions(-) delete mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json.bak diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json.bak b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json.bak deleted file mode 100644 index 08f7ea87b63d..000000000000 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json.bak +++ /dev/null @@ -1,1261 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "2020-05-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": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/FilterParameter" - }, - { - "$ref": "#/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": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/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" - } - } - } - }, - "/{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": "#/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": "#/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" - } - } - } - } - "get": { - "tags": [ - "Operations" - ], - "operationId": "Operations_List", - "description": "Lists available operations for the resourcehealth resource provider", - "parameters": [ - { - "$ref": "#/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" - } - } - } - } - } - }, - "definitions": { - "properties": { - "value": { - "type": "array", - "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." - }, - "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 - } - }, - "article": { - "type": "object", - "description": "Article of event.", - "properties": { - "articleContent": { - "type": "string", - "description": "Article content of event." - } - } - }, - "links": { - "type": "array", - "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", - "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", - "description": "Recommended actions for the service health event.", - "items": { - "type": "object", - "description": "Recommended action for the service health event.", - "properties": { - "groupId": { - "type": "integer", - "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", - "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", - "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" - } - } - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" - } - ] - }, - "link": { - "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." - } - } - }, - "faq": { - "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." - } - } - }, - "impact": { - "description": "Azure service impacted by the service health event.", - "properties": { - "impactedService": { - "type": "string", - "description": "Impacted service name." - }, - "impactedRegions": { - "type": "array", - "description": "List regions impacted by the service health event.", - "items": { - "$ref": "#/definitions/impactedServiceRegion" - } - } - } - }, - "impactedServiceRegion": { - "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", - "description": "List subscription impacted by the service health event.", - "items": { - "type": "string", - "description": "Subscription 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", - "description": "List of updates for given service health event.", - "items": { - "$ref": "#/definitions/update" - } - } - } - }, - "update": { - "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" - } - } - }, - "impactedResourceListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/impactedResourceStatus" - }, - "description": "The list of impactedResourceStatus." - }, - "nextLink": { - "type": "string", - "description": "The URI to fetch the next page of impactedResourceStatus." - } - }, - "required": [ - "value" - ], - "description": "The List impactedResourceStatus operation response." - }, - "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 - } - }, - "occuredTime": { - "type": "string", - "description": "Timestamp for when last change in health status occurred.", - "format": "date-time" - } - } - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" - } - ] - }, - "availabilityStatusListResult": { - "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 - } - }, - "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." - }, - "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": { - "unavailableOccurredTime": { - "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" - }, - "unavailabilitySummary": { - "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" - } - }, - "serviceImpactingEvents": { - "type": "array", - "description": "Lists the service impacting events that may be affecting the health of the resource.", - "items": { - "$ref": "#/definitions/serviceImpactingEvent" - } - } - } - } - } - }, - "recommendedAction": { - "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": { - "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": { - "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": { - "description": "Object of impacted region.", - "properties": { - "id": { - "type": "string", - "description": "The impacted region id." - }, - "name": { - "type": "string", - "description": "The impacted region name." - } - } - }, - "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." - } - } - }, - "statusActiveEvent": { - "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." - } - } - }, - "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/v1/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." - }, - "statusActiveEvents": { - "type": "array", - "items": { - "$ref": "#/definitions/statusActiveEvent" - }, - "description": "The list of emerging issues of active event type." - } - } - }, - "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" - } - } - }, - "operationListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/operation" - }, - "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.", - "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." - } - } - } - } - }, - "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 - } - } - } - "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" - } - } - } - } - "description": "The metadata supported value detail.", - "type": "object", - "properties": { - "id": { - "description": "The id.", - "type": "string" - }, - "displayName": { - "description": "The display name.", - "type": "string" - } - } - } - }, - "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Client Api Version." - }, - "IssueNameParameter": { - "name": "issueName", - "in": "path", - "description": "The name of the emerging issue.", - "required": true, - "type": "string", - "enum": [ - "default" - ], - "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" - }, - "EventIdParameter": { - "name": "eventId", - "in": "path", - "required": true, - "type": "string", - "description": "EventId for the Service health event" - } - } -} From 8f75495cef67bba46d153c2335989b8e93d809be Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Tue, 3 Aug 2021 13:43:55 -0700 Subject: [PATCH 07/68] Update ResourceHealth.json fixed preview resourcehealth.json --- .../preview/2020-05-01/ResourceHealth.json | 316 ------------------ 1 file changed, 316 deletions(-) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json index 3a1f8c9399d4..8a6da244d933 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json @@ -221,254 +221,8 @@ } } } - "get": { - "tags": [ - "Operations" - ], - "operationId": "Operations_List", - "description": "Lists available operations for the resourcehealth resource provider", - "parameters": [ - { - "$ref": "#/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" - } - } - } - } - } }, "definitions": { - "properties": { - "value": { - "type": "array", - "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." - }, - "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 - } - }, - "article": { - "type": "object", - "description": "Article of event.", - "properties": { - "articleContent": { - "type": "string", - "description": "Article content of event." - } - } - }, - "links": { - "type": "array", - "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", - "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", - "description": "Recommended actions for the service health event.", - "items": { - "type": "object", - "description": "Recommended action for the service health event.", - "properties": { - "groupId": { - "type": "integer", - "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", - "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", - "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" - } - } - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" - } - ] - }, "link": { "description": "Useful links for service health event.", "properties": { @@ -934,26 +688,6 @@ "description": "The impacted region name." } } - }, - "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." - } - } }, "statusActiveEvent": { "description": "Active event type of emerging issue.", @@ -1044,56 +778,6 @@ } } } - "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" - } - } - } - } - "description": "The metadata supported value detail.", - "type": "object", - "properties": { - "id": { - "description": "The id.", - "type": "string" - }, - "displayName": { - "description": "The display name.", - "type": "string" - } - } - } }, "parameters": { "SubscriptionIdParameter": { From 4e2944405b6a6724164f4e4f00a120b320554a69 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Tue, 3 Aug 2021 14:34:33 -0700 Subject: [PATCH 08/68] Update ResourceHealth.json fixing the typo occurredTime --- .../stable/2020-05-01/ResourceHealth.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 d08e8c827a45..ae0f5895da2b 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 @@ -417,7 +417,7 @@ "modelAsString": true } }, - "occuredTime": { + "occurredTime": { "type": "string", "description": "Timestamp for when last change in health status occurred.", "format": "date-time" From 093d55c430bb2cf833d829d4dc64a430a80a1278 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Tue, 3 Aug 2021 14:34:59 -0700 Subject: [PATCH 09/68] Update ResourceHealth.json fixing typo occurredTime --- .../preview/2020-05-01/ResourceHealth.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json index 8a6da244d933..b7a92469d466 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json @@ -417,7 +417,7 @@ "modelAsString": true } }, - "occuredTime": { + "occurredTime": { "type": "string", "description": "Timestamp for when last change in health status occurred.", "format": "date-time" From 19d22592c3dcaa8b5cc24f5ffd75ac4648824aa1 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Tue, 3 Aug 2021 16:09:18 -0700 Subject: [PATCH 10/68] Update ResourceHealth.json fix PR errors --- .../stable/2020-05-01/ResourceHealth.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ae0f5895da2b..d08e8c827a45 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 @@ -417,7 +417,7 @@ "modelAsString": true } }, - "occurredTime": { + "occuredTime": { "type": "string", "description": "Timestamp for when last change in health status occurred.", "format": "date-time" From fea543dd1529dcd8d3f2bec27731a26f5f44362a Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Tue, 3 Aug 2021 16:09:45 -0700 Subject: [PATCH 11/68] Update ResourceHealth.json fix PR checks --- .../preview/2020-05-01/ResourceHealth.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json index b7a92469d466..8a6da244d933 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json @@ -417,7 +417,7 @@ "modelAsString": true } }, - "occurredTime": { + "occuredTime": { "type": "string", "description": "Timestamp for when last change in health status occurred.", "format": "date-time" From 507a325aa3982f417edebabf0a59d9e0c3971fa0 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Wed, 4 Aug 2021 14:34:57 -0700 Subject: [PATCH 12/68] Update ResourceHealth.json fixing semantic validation --- .../preview/2020-05-01/ResourceHealth.json | 68 ------------------- 1 file changed, 68 deletions(-) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json index 8a6da244d933..661618c31ffb 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json @@ -689,74 +689,6 @@ } } }, - "statusActiveEvent": { - "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." - } - } - }, "ErrorResponse": { "description": "Error details.", "type": "object", From 9a1c2af0f45733ae080827142ada4b0c414719fc Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Wed, 4 Aug 2021 14:37:06 -0700 Subject: [PATCH 13/68] Update ResourceHealth.json fixing semantic validation for stable 2020-05-01 API --- .../stable/2020-05-01/ResourceHealth.json | 68 ------------------- 1 file changed, 68 deletions(-) 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 d08e8c827a45..9706ebe97bbc 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 @@ -689,74 +689,6 @@ } } }, - "statusActiveEvent": { - "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." - } - } - }, "ErrorResponse": { "description": "Error details.", "type": "object", From 992352dd1ac70419d1f1f139350d15f3b1761566 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Wed, 4 Aug 2021 14:56:49 -0700 Subject: [PATCH 14/68] Update custom-words.txt fixing Swagger SpellCheck failure --- custom-words.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/custom-words.txt b/custom-words.txt index cfe6420bea89..2272f69a2d34 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -1300,6 +1300,7 @@ nysiis OAEP Occitan octokit +occured Odata odatatype ODBC From c37ec623def7be0b84e1210487a954c6af97b52f Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Wed, 4 Aug 2021 15:45:11 -0700 Subject: [PATCH 15/68] Update ResourceHealth.json fixed Swagger PrettierCheck changes From 2404f7f481476def997772a0d890dae528a5e440 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Wed, 4 Aug 2021 15:46:03 -0700 Subject: [PATCH 16/68] Update ResourceHealth.json fixed Swagger PrettierCheck failure From dc023ef284b9d1a558b5e0543a1330d03713bccf Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Wed, 4 Aug 2021 15:54:01 -0700 Subject: [PATCH 17/68] Update ResourceHealth.json fixed Swagger LintDiff --- .../stable/2020-05-01/ResourceHealth.json | 150 ------------------ 1 file changed, 150 deletions(-) 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 9706ebe97bbc..486e2a7aa79c 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 @@ -223,156 +223,6 @@ } }, "definitions": { - "link": { - "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." - } - } - }, - "faq": { - "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." - } - } - }, - "impact": { - "description": "Azure service impacted by the service health event.", - "properties": { - "impactedService": { - "type": "string", - "description": "Impacted service name." - }, - "impactedRegions": { - "type": "array", - "description": "List regions impacted by the service health event.", - "items": { - "$ref": "#/definitions/impactedServiceRegion" - } - } - } - }, - "impactedServiceRegion": { - "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", - "description": "List subscription impacted by the service health event.", - "items": { - "type": "string", - "description": "Subscription 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", - "description": "List of updates for given service health event.", - "items": { - "$ref": "#/definitions/update" - } - } - } - }, - "update": { - "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" - } - } - }, - "impactedResourceListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/impactedResourceStatus" - }, - "description": "The list of impactedResourceStatus." - }, - "nextLink": { - "type": "string", - "description": "The URI to fetch the next page of impactedResourceStatus." - } - }, - "required": [ - "value" - ], - "description": "The List impactedResourceStatus operation response." - }, "impactedResourceStatus": { "type": "object", "description": "impactedResource with health status", From 3795d8f419b827e5fa42e3963e8e10dbf6cb1efe Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Wed, 4 Aug 2021 16:04:54 -0700 Subject: [PATCH 18/68] Update ResourceHealth.json fixing Swagger LintDiff --- .../stable/2020-05-01/ResourceHealth.json | 5 +++++ 1 file changed, 5 insertions(+) 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 486e2a7aa79c..17f5e58b2a52 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 @@ -282,6 +282,7 @@ ] }, "availabilityStatusListResult": { + "type": "object", "properties": { "value": { "type": "array", @@ -437,6 +438,7 @@ } }, "recommendedAction": { + "type": "object", "description": "Lists actions the user can take based on the current availabilityState of the resource.", "properties": { "action": { @@ -454,6 +456,7 @@ } }, "serviceImpactingEvent": { + "type": "object", "description": "Lists the service impacting events that may be affecting the health of the resource.", "properties": { "eventStartTime": { @@ -505,6 +508,7 @@ } }, "statusBanner": { + "type": "object", "description": "Banner type of emerging issue.", "properties": { "title": { @@ -527,6 +531,7 @@ } }, "impactedRegion": { + "type": "object", "description": "Object of impacted region.", "properties": { "id": { From c75e628c4632c8480cee819c71391a0eb50dc04d Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Wed, 4 Aug 2021 16:13:44 -0700 Subject: [PATCH 19/68] Update ResourceHealth.json fix Swagger LintDiff failures --- .../preview/2020-05-01/ResourceHealth.json | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json index 661618c31ffb..70f5670826dd 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json @@ -224,6 +224,7 @@ }, "definitions": { "link": { + "type": "object", "description": "Useful links for service health event.", "properties": { "type": { @@ -267,6 +268,7 @@ } }, "faq": { + "type": "object", "description": "Frequently asked question for the service health event", "properties": { "question": { @@ -284,6 +286,7 @@ } }, "impact": { + "type": "object", "description": "Azure service impacted by the service health event.", "properties": { "impactedService": { @@ -300,6 +303,7 @@ } }, "impactedServiceRegion": { + "type": "object", "description": "Azure region impacted by the service health event.", "properties": { "impactedRegion": { @@ -341,6 +345,7 @@ } }, "update": { + "type": "object", "description": "Update for service health event.", "properties": { "summary": { @@ -355,6 +360,7 @@ } }, "impactedResourceListResult": { + "type": "object", "properties": { "value": { "type": "array", @@ -432,6 +438,7 @@ ] }, "availabilityStatusListResult": { + "type": "object", "properties": { "value": { "type": "array", @@ -587,6 +594,7 @@ } }, "recommendedAction": { + "type": "object", "description": "Lists actions the user can take based on the current availabilityState of the resource.", "properties": { "action": { @@ -604,6 +612,7 @@ } }, "serviceImpactingEvent": { + "type": "object", "description": "Lists the service impacting events that may be affecting the health of the resource.", "properties": { "eventStartTime": { @@ -655,6 +664,7 @@ } }, "statusBanner": { + "type": "object", "description": "Banner type of emerging issue.", "properties": { "title": { @@ -677,6 +687,7 @@ } }, "impactedRegion": { + "type": "object", "description": "Object of impacted region.", "properties": { "id": { From 90e1fd98f98fc8018a065bb901e095a8fbc0e385 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Wed, 4 Aug 2021 16:18:20 -0700 Subject: [PATCH 20/68] Update readme.md fixing swagger checks --- .../resourcehealth/resource-manager/readme.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/specification/resourcehealth/resource-manager/readme.md b/specification/resourcehealth/resource-manager/readme.md index b5fca7927740..e168ea1dd72b 100644 --- a/specification/resourcehealth/resource-manager/readme.md +++ b/specification/resourcehealth/resource-manager/readme.md @@ -58,11 +58,11 @@ input-file: - Microsoft.ResourceHealth/preview/2018-08-01/ResourceHealth.json ``` -### Tag: package-2020-05-preview +### Tag: package-2020-05-01-preview These settings apply only when `--tag=package-2020-05-preview` is specified on the command line. -``` yaml $(tag) == 'package-2020-05-preview' +``` yaml $(tag) == 'package-2020-05-01-preview' input-file: - Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json ``` @@ -138,7 +138,7 @@ batch: - tag: package-2017-07 - tag: package-2015-01 - tag: package-2018-08-preview - - tag: package-2020-05-preview + - tag: package-2020-05-01-preview - tag: package-2018-07-01 - tag: package-2020-05-01 ``` @@ -180,9 +180,9 @@ java: regenerate-manager: true generate-interface: true ``` -### Tag: package-2020-05-preview and java +### Tag: package-2020-05-01-preview and java -These settings apply only when `--tag=package-2020-05-preview --java` is specified on the command line. +These settings apply only when `--tag=package-2020-05-01-preview --java` is specified on the command line. Please also specify `--azure-libraries-for-java=`. ``` yaml $(tag) == 'package-2018-08-preview' && $(java) && $(multiapi) From b2e370a6c2d9c24be6a3ed6eaca9a0808c7df5e9 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Wed, 4 Aug 2021 16:24:46 -0700 Subject: [PATCH 21/68] Update ResourceHealth.json fixed eventid issue --- .../preview/2020-05-01/ResourceHealth.json | 7 ------- 1 file changed, 7 deletions(-) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json index 70f5670826dd..5535a9ebce99 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json @@ -771,13 +771,6 @@ "type": "string", "description": "Setting $expand=recommendedactions in url query expands the recommendedactions in the response.", "x-ms-parameter-location": "method" - }, - "EventIdParameter": { - "name": "eventId", - "in": "path", - "required": true, - "type": "string", - "description": "EventId for the Service health event" } } } From 65f8d9bc70e256fc4f42110dc051381be1a2d38f Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Wed, 4 Aug 2021 16:25:24 -0700 Subject: [PATCH 22/68] Update ResourceHealth.json fixed eventId param --- .../stable/2020-05-01/ResourceHealth.json | 7 ------- 1 file changed, 7 deletions(-) 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 17f5e58b2a52..83f930f24e15 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 @@ -615,13 +615,6 @@ "type": "string", "description": "Setting $expand=recommendedactions in url query expands the recommendedactions in the response.", "x-ms-parameter-location": "method" - }, - "EventIdParameter": { - "name": "eventId", - "in": "path", - "required": true, - "type": "string", - "description": "EventId for the Service health event" } } } From ff1758be0a00bd52e63d99c9724a5b8d304b07db Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Thu, 5 Aug 2021 11:26:09 -0700 Subject: [PATCH 23/68] Update ResourceHealth.json fixing the Swagger PrettierCheck --- .../preview/2020-05-01/ResourceHealth.json | 814 ++---------------- 1 file changed, 49 insertions(+), 765 deletions(-) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json index 5535a9ebce99..55ba129395bb 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json @@ -1,776 +1,60 @@ { - "swagger": "2.0", - "info": { - "version": "2020-05-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" - } - } + "parameters": { + "resourceUri": "resourceUri", + "api-version": "2020-05-01-preview" }, - "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": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/FilterParameter" - }, - { - "$ref": "#/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": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/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" - } - } - } - }, - "/{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": "#/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" + "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", + "summary": "We're sorry, we couldn't automatically recover your virtual machine", + "reasonType": "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" + } + } + ] } - } - }, - "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": "#/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" - } - } - } - } - }, - "definitions": { - "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." - } - } - }, - "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." - } - } - }, - "impact": { - "type": "object", - "description": "Azure service impacted by the service health event.", - "properties": { - "impactedService": { - "type": "string", - "description": "Impacted service name." - }, - "impactedRegions": { - "type": "array", - "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", - "description": "List subscription impacted by the service health event.", - "items": { - "type": "string", - "description": "Subscription 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", - "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" - } - } - }, - "impactedResourceListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/impactedResourceStatus" - }, - "description": "The list of impactedResourceStatus." - }, - "nextLink": { - "type": "string", - "description": "The URI to fetch the next page of impactedResourceStatus." - } - }, - "required": [ - "value" - ], - "description": "The List impactedResourceStatus operation response." - }, - "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 - } - }, - "occuredTime": { - "type": "string", - "description": "Timestamp for when last change in health status occurred.", - "format": "date-time" - } - } - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" - } - ] - }, - "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 - } - }, - "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." - }, - "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": { - "unavailableOccurredTime": { - "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" - }, - "unavailabilitySummary": { - "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" - } - }, - "serviceImpactingEvents": { - "type": "array", - "description": "Lists the service impacting events that may be affecting the health of the resource.", - "items": { - "$ref": "#/definitions/serviceImpactingEvent" - } + "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" } } - } - } - }, - "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." - } - } - }, - "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": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Client Api Version." - }, - "IssueNameParameter": { - "name": "issueName", - "in": "path", - "description": "The name of the emerging issue.", - "required": true, - "type": "string", - "enum": [ - "default" - ], - "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" } } } From cd4a24386ab60c70c1ef4826e300321fe00b1382 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Thu, 5 Aug 2021 11:27:04 -0700 Subject: [PATCH 24/68] Update ResourceHealth.json correcting the REsourceHealth.json file --- .../preview/2020-05-01/ResourceHealth.json | 814 ++++++++++++++++-- 1 file changed, 765 insertions(+), 49 deletions(-) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json index 55ba129395bb..fc292cff68ff 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json @@ -1,60 +1,776 @@ { - "parameters": { - "resourceUri": "resourceUri", - "api-version": "2020-05-01-preview" + "swagger": "2.0", + "info": { + "version": "2020-05-01-preview", + "title": "Microsoft.ResourceHealth", + "description": "The Resource Health Client." }, - "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", - "summary": "We're sorry, we couldn't automatically recover your virtual machine", - "reasonType": "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" - } - } - ] + "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": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/FilterParameter" + }, + { + "$ref": "#/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": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/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" + } + } + } + }, + "/{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": "#/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": "#/parameters/ApiVersionParameter" }, { - "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" + "$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" + } + } + } + } + }, + "definitions": { + "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." + } + } + }, + "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." + } + } + }, + "impact": { + "type": "object", + "description": "Azure service impacted by the service health event.", + "properties": { + "impactedService": { + "type": "string", + "description": "Impacted service name." + }, + "impactedRegions": { + "type": "array", + "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", + "description": "List subscription impacted by the service health event.", + "items": { + "type": "string", + "description": "Subscription 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", + "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" + } + } + }, + "impactedResourceListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/impactedResourceStatus" + }, + "description": "The list of impactedResourceStatus." + }, + "nextLink": { + "type": "string", + "description": "The URI to fetch the next page of impactedResourceStatus." + } + }, + "required": [ + "value" + ], + "description": "The List impactedResourceStatus operation response." + }, + "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 + } + }, + "occuredTime": { + "type": "string", + "description": "Timestamp for when last change in health status occurred.", + "format": "date-time" + } + } + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" + } + ] + }, + "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 + } + }, + "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." + }, + "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": { + "unavailableOccurredTime": { + "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" + }, + "unavailabilitySummary": { + "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" + } + }, + "serviceImpactingEvents": { + "type": "array", + "description": "Lists the service impacting events that may be affecting the health of the resource.", + "items": { + "$ref": "#/definitions/serviceImpactingEvent" + } } } - ] + } + } + }, + "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." + } + } + }, + "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": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." + }, + "IssueNameParameter": { + "name": "issueName", + "in": "path", + "description": "The name of the emerging issue.", + "required": true, + "type": "string", + "enum": [ + "default" + ], + "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" } } } From 84b595edbfa4e4ccba642218310fe8319e77d7fb Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Thu, 5 Aug 2021 16:34:59 -0700 Subject: [PATCH 25/68] Add files via upload uplaoding local files --- .../preview/2020-05-01/ResourceHealth.json | 1552 ++++++++--------- 1 file changed, 776 insertions(+), 776 deletions(-) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json index fc292cff68ff..ddd013a4c4a4 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json @@ -1,776 +1,776 @@ -{ - "swagger": "2.0", - "info": { - "version": "2020-05-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": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/FilterParameter" - }, - { - "$ref": "#/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": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/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" - } - } - } - }, - "/{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": "#/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": "#/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" - } - } - } - } - }, - "definitions": { - "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." - } - } - }, - "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." - } - } - }, - "impact": { - "type": "object", - "description": "Azure service impacted by the service health event.", - "properties": { - "impactedService": { - "type": "string", - "description": "Impacted service name." - }, - "impactedRegions": { - "type": "array", - "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", - "description": "List subscription impacted by the service health event.", - "items": { - "type": "string", - "description": "Subscription 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", - "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" - } - } - }, - "impactedResourceListResult": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/impactedResourceStatus" - }, - "description": "The list of impactedResourceStatus." - }, - "nextLink": { - "type": "string", - "description": "The URI to fetch the next page of impactedResourceStatus." - } - }, - "required": [ - "value" - ], - "description": "The List impactedResourceStatus operation response." - }, - "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 - } - }, - "occuredTime": { - "type": "string", - "description": "Timestamp for when last change in health status occurred.", - "format": "date-time" - } - } - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" - } - ] - }, - "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 - } - }, - "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." - }, - "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": { - "unavailableOccurredTime": { - "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" - }, - "unavailabilitySummary": { - "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" - } - }, - "serviceImpactingEvents": { - "type": "array", - "description": "Lists the service impacting events that may be affecting the health of the resource.", - "items": { - "$ref": "#/definitions/serviceImpactingEvent" - } - } - } - } - } - }, - "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." - } - } - }, - "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": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Client Api Version." - }, - "IssueNameParameter": { - "name": "issueName", - "in": "path", - "description": "The name of the emerging issue.", - "required": true, - "type": "string", - "enum": [ - "default" - ], - "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" - } - } -} +{ + "swagger": "2.0", + "info": { + "version": "2020-05-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": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/FilterParameter" + }, + { + "$ref": "#/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": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/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" + } + } + } + }, + "/{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": "#/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": "#/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" + } + } + } + } + }, + "definitions": { + "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." + } + } + }, + "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." + } + } + }, + "impact": { + "type": "object", + "description": "Azure service impacted by the service health event.", + "properties": { + "impactedService": { + "type": "string", + "description": "Impacted service name." + }, + "impactedRegions": { + "type": "array", + "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", + "description": "List subscription impacted by the service health event.", + "items": { + "type": "string", + "description": "Subscription 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", + "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" + } + } + }, + "impactedResourceListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/impactedResourceStatus" + }, + "description": "The list of impactedResourceStatus." + }, + "nextLink": { + "type": "string", + "description": "The URI to fetch the next page of impactedResourceStatus." + } + }, + "required": [ + "value" + ], + "description": "The List impactedResourceStatus operation response." + }, + "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 + } + }, + "occuredTime": { + "type": "string", + "description": "Timestamp for when last change in health status occurred.", + "format": "date-time" + } + } + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" + } + ] + }, + "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 + } + }, + "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." + }, + "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": { + "unavailableOccurredTime": { + "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" + }, + "unavailabilitySummary": { + "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" + } + }, + "serviceImpactingEvents": { + "type": "array", + "description": "Lists the service impacting events that may be affecting the health of the resource.", + "items": { + "$ref": "#/definitions/serviceImpactingEvent" + } + } + } + } + } + }, + "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." + } + } + }, + "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": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." + }, + "IssueNameParameter": { + "name": "issueName", + "in": "path", + "description": "The name of the emerging issue.", + "required": true, + "type": "string", + "enum": [ + "default" + ], + "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" + } + } +} From d89ee54f288628e41c9abafe3c2a5a55d9f1924f Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Thu, 5 Aug 2021 16:35:56 -0700 Subject: [PATCH 26/68] Add files via upload fix swagger prettier From b92cc0b67f70ad760e6e794ca07c67b5a12aa4d4 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Fri, 6 Aug 2021 10:30:34 -0700 Subject: [PATCH 27/68] Add files via upload fix swagger pretttier issue - preview examples --- .../AvailabilityStatus_GetByResource.json | 80 +++++----- .../examples/AvailabilityStatuses_List.json | 120 +++++++------- ...ilabilityStatuses_ListByResourceGroup.json | 146 +++++++++--------- ...labilityStatuses_ListBySubscriptionId.json | 144 ++++++++--------- 4 files changed, 245 insertions(+), 245 deletions(-) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/examples/AvailabilityStatus_GetByResource.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/examples/AvailabilityStatus_GetByResource.json index b1f3fca7e9f9..e4bdd609abfa 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/examples/AvailabilityStatus_GetByResource.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/examples/AvailabilityStatus_GetByResource.json @@ -1,40 +1,40 @@ -{ - "parameters": { - "resourceUri": "resourceUri", - "api-version": "2020-05-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", - "summary": "We're sorry, we couldn't automatically recover your virtual machine", - "reasonType": "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" - } - ] - } - } - } - } -} +{ + "parameters": { + "resourceUri": "resourceUri", + "api-version": "2020-05-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", + "summary": "We're sorry, we couldn't automatically recover your virtual machine", + "reasonType": "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/preview/2020-05-01/examples/AvailabilityStatuses_List.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/examples/AvailabilityStatuses_List.json index 55ba129395bb..260510713144 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/examples/AvailabilityStatuses_List.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/examples/AvailabilityStatuses_List.json @@ -1,60 +1,60 @@ -{ - "parameters": { - "resourceUri": "resourceUri", - "api-version": "2020-05-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", - "summary": "We're sorry, we couldn't automatically recover your virtual machine", - "reasonType": "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" - } - } - ] - } - } - } -} +{ + "parameters": { + "resourceUri": "resourceUri", + "api-version": "2020-05-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", + "summary": "We're sorry, we couldn't automatically recover your virtual machine", + "reasonType": "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/preview/2020-05-01/examples/AvailabilityStatuses_ListByResourceGroup.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/examples/AvailabilityStatuses_ListByResourceGroup.json index 2f272ff3363c..a640ef1e750f 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/examples/AvailabilityStatuses_ListByResourceGroup.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/examples/AvailabilityStatuses_ListByResourceGroup.json @@ -1,73 +1,73 @@ -{ - "parameters": { - "subscriptionId": "subscriptionId", - "resourceGroupName": "resourceGroupName", - "api-version": "2020-05-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", - "summary": "Vm is available", - "reasonType": "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": { - "unavailableOccurredTime": "2017-02-28T00:48:00Z", - "resolvedTime": "2017-02-28T00:49:00Z", - "unavailabilitySummary": "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", - "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}" - } - } - } -} +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourceGroupName", + "api-version": "2020-05-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", + "summary": "Vm is available", + "reasonType": "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": { + "unavailableOccurredTime": "2017-02-28T00:48:00Z", + "resolvedTime": "2017-02-28T00:49:00Z", + "unavailabilitySummary": "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", + "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/preview/2020-05-01/examples/AvailabilityStatuses_ListBySubscriptionId.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/examples/AvailabilityStatuses_ListBySubscriptionId.json index 1e9c2afc0a12..242f79a10ba0 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/examples/AvailabilityStatuses_ListBySubscriptionId.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/examples/AvailabilityStatuses_ListBySubscriptionId.json @@ -1,72 +1,72 @@ -{ - "parameters": { - "subscriptionId": "subscriptionId", - "api-version": "2020-05-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", - "summary": "Vm is available", - "reasonType": "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": { - "unavailableOccurredTime": "2017-02-28T00:48:00Z", - "resolvedTime": "2017-02-28T00:49:00Z", - "unavailabilitySummary": "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", - "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}" - } - } - } -} +{ + "parameters": { + "subscriptionId": "subscriptionId", + "api-version": "2020-05-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", + "summary": "Vm is available", + "reasonType": "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": { + "unavailableOccurredTime": "2017-02-28T00:48:00Z", + "resolvedTime": "2017-02-28T00:49:00Z", + "unavailabilitySummary": "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", + "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}" + } + } + } +} From c5882047cb8010e9e57ce0c511e3007e3b7dc422 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Fri, 6 Aug 2021 10:47:38 -0700 Subject: [PATCH 28/68] Add files via upload fix prettier changes --- .../stable/2020-05-01/ResourceHealth.json | 1247 +++++++++-------- 1 file changed, 627 insertions(+), 620 deletions(-) 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 83f930f24e15..3fe9fb3b21f7 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 @@ -1,620 +1,627 @@ -{ - "swagger": "2.0", - "info": { - "version": "2020-05-01", - "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": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/FilterParameter" - }, - { - "$ref": "#/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": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/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" - } - } - } - }, - "/{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": "#/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": "#/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" - } - } - } - } - }, - "definitions": { - "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 - } - }, - "occuredTime": { - "type": "string", - "description": "Timestamp for when last change in health status occurred.", - "format": "date-time" - } - } - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" - } - ] - }, - "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 - } - }, - "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." - }, - "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": { - "unavailableOccurredTime": { - "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" - }, - "unavailabilitySummary": { - "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" - } - }, - "serviceImpactingEvents": { - "type": "array", - "description": "Lists the service impacting events that may be affecting the health of the resource.", - "items": { - "$ref": "#/definitions/serviceImpactingEvent" - } - } - } - } - } - }, - "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." - } - } - }, - "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": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Client Api Version." - }, - "IssueNameParameter": { - "name": "issueName", - "in": "path", - "description": "The name of the emerging issue.", - "required": true, - "type": "string", - "enum": [ - "default" - ], - "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" - } - } -} +{ + "swagger": "2.0", + "info": { + "version": "2020-05-01", + "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": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/FilterParameter" + }, + { + "$ref": "#/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": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/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" + } + } + } + }, + "/{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": "#/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": "#/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" + } + } + } + } + }, + "definitions": { + "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 + } + }, + "occuredTime": { + "type": "string", + "description": "Timestamp for when last change in health status occurred.", + "format": "date-time" + } + } + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" + } + ] + }, + "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 + } + }, + "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." + }, + "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": { + "unavailableOccurredTime": { + "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" + }, + "unavailabilitySummary": { + "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" + } + }, + "serviceImpactingEvents": { + "type": "array", + "description": "Lists the service impacting events that may be affecting the health of the resource.", + "items": { + "$ref": "#/definitions/serviceImpactingEvent" + } + } + } + } + } + }, + "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." + } + } + }, + "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": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." + }, + "IssueNameParameter": { + "name": "issueName", + "in": "path", + "description": "The name of the emerging issue.", + "required": true, + "type": "string", + "enum": [ + "default" + ], + "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" + }, + "EventIdParameter": { + "name": "eventId", + "in": "path", + "required": true, + "type": "string", + "description": "EventId for the Service health event" + } + } +} From 070520333e3eb145c99245f14c2b7a33af421985 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Fri, 6 Aug 2021 10:48:14 -0700 Subject: [PATCH 29/68] Add files via upload fix swagger prettier changes --- .../AvailabilityStatus_GetByResource.json | 80 +++++----- .../examples/AvailabilityStatuses_List.json | 120 +++++++------- ...ilabilityStatuses_ListByResourceGroup.json | 146 +++++++++--------- ...labilityStatuses_ListBySubscriptionId.json | 144 ++++++++--------- 4 files changed, 245 insertions(+), 245 deletions(-) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatus_GetByResource.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatus_GetByResource.json index 3230b20a723e..4603d3c4f1ba 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatus_GetByResource.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatus_GetByResource.json @@ -1,40 +1,40 @@ -{ - "parameters": { - "resourceUri": "resourceUri", - "api-version": "2020-05-01", - "$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", - "summary": "We're sorry, we couldn't automatically recover your virtual machine", - "reasonType": "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" - } - ] - } - } - } - } -} +{ + "parameters": { + "resourceUri": "resourceUri", + "api-version": "2020-05-01", + "$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", + "summary": "We're sorry, we couldn't automatically recover your virtual machine", + "reasonType": "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/2020-05-01/examples/AvailabilityStatuses_List.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_List.json index 03b7e6c9397e..8cd2642b4645 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_List.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_List.json @@ -1,60 +1,60 @@ -{ - "parameters": { - "resourceUri": "resourceUri", - "api-version": "2020-05-01" - }, - "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", - "summary": "We're sorry, we couldn't automatically recover your virtual machine", - "reasonType": "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" - } - } - ] - } - } - } -} +{ + "parameters": { + "resourceUri": "resourceUri", + "api-version": "2020-05-01" + }, + "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", + "summary": "We're sorry, we couldn't automatically recover your virtual machine", + "reasonType": "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/2020-05-01/examples/AvailabilityStatuses_ListByResourceGroup.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_ListByResourceGroup.json index 680b777c2cc1..82e06c4be0df 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_ListByResourceGroup.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_ListByResourceGroup.json @@ -1,73 +1,73 @@ -{ - "parameters": { - "subscriptionId": "subscriptionId", - "resourceGroupName": "resourceGroupName", - "api-version": "2020-05-01", - "$expand": "recommendedactions" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/providers/Microsoft.ResourceHealth/AvailabilityStatueses/current", - "name": "current", - "type": "Microsoft.ResourceHealth/AvailabilityStatuses", - "location": "eastus", - "properties": { - "availabilityState": "Available", - "summary": "Vm is available", - "reasonType": "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": { - "unavailableOccurredTime": "2017-02-28T00:48:00Z", - "resolvedTime": "2017-02-28T00:49:00Z", - "unavailabilitySummary": "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", - "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}" - } - } - } -} +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourceGroupName", + "api-version": "2020-05-01", + "$expand": "recommendedactions" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.ResourceHealth/AvailabilityStatueses/current", + "name": "current", + "type": "Microsoft.ResourceHealth/AvailabilityStatuses", + "location": "eastus", + "properties": { + "availabilityState": "Available", + "summary": "Vm is available", + "reasonType": "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": { + "unavailableOccurredTime": "2017-02-28T00:48:00Z", + "resolvedTime": "2017-02-28T00:49:00Z", + "unavailabilitySummary": "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", + "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/2020-05-01/examples/AvailabilityStatuses_ListBySubscriptionId.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_ListBySubscriptionId.json index 634d06f3f386..de55e5e30a91 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_ListBySubscriptionId.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_ListBySubscriptionId.json @@ -1,72 +1,72 @@ -{ - "parameters": { - "subscriptionId": "subscriptionId", - "api-version": "2020-05-01", - "$expand": "recommendedactions" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/providers/Microsoft.ResourceHealth/AvailabilityStatueses/current", - "name": "current", - "type": "Microsoft.ResourceHealth/AvailabilityStatuses", - "location": "eastus", - "properties": { - "availabilityState": "Available", - "summary": "Vm is available", - "reasonType": "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": { - "unavailableOccurredTime": "2017-02-28T00:48:00Z", - "resolvedTime": "2017-02-28T00:49:00Z", - "unavailabilitySummary": "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", - "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}" - } - } - } -} +{ + "parameters": { + "subscriptionId": "subscriptionId", + "api-version": "2020-05-01", + "$expand": "recommendedactions" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.ResourceHealth/AvailabilityStatueses/current", + "name": "current", + "type": "Microsoft.ResourceHealth/AvailabilityStatuses", + "location": "eastus", + "properties": { + "availabilityState": "Available", + "summary": "Vm is available", + "reasonType": "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": { + "unavailableOccurredTime": "2017-02-28T00:48:00Z", + "resolvedTime": "2017-02-28T00:49:00Z", + "unavailabilitySummary": "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", + "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}" + } + } + } +} From d94eb8cfb48870774ec80e6276d196ab82fc6181 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Fri, 6 Aug 2021 10:53:46 -0700 Subject: [PATCH 30/68] Update readme.md fixing Swagger Avocado failures --- .../resourcehealth/resource-manager/readme.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/specification/resourcehealth/resource-manager/readme.md b/specification/resourcehealth/resource-manager/readme.md index e168ea1dd72b..a8b9bf145172 100644 --- a/specification/resourcehealth/resource-manager/readme.md +++ b/specification/resourcehealth/resource-manager/readme.md @@ -58,7 +58,7 @@ input-file: - Microsoft.ResourceHealth/preview/2018-08-01/ResourceHealth.json ``` -### Tag: package-2020-05-01-preview +### Tag: package-2020-05-preview These settings apply only when `--tag=package-2020-05-preview` is specified on the command line. @@ -138,7 +138,7 @@ batch: - tag: package-2017-07 - tag: package-2015-01 - tag: package-2018-08-preview - - tag: package-2020-05-01-preview + - tag: package-2020-05-preview - tag: package-2018-07-01 - tag: package-2020-05-01 ``` @@ -180,12 +180,12 @@ java: regenerate-manager: true generate-interface: true ``` -### Tag: package-2020-05-01-preview and java +### Tag: package-2020-05-preview and java -These settings apply only when `--tag=package-2020-05-01-preview --java` is specified on the command line. +These settings apply only when `--tag=package-2020-05-preview --java` is specified on the command line. Please also specify `--azure-libraries-for-java=`. -``` yaml $(tag) == 'package-2018-08-preview' && $(java) && $(multiapi) +``` yaml $(tag) == 'package-2020-05-preview' && $(java) && $(multiapi) java: namespace: com.microsoft.azure.management.resourcehealth.v2020_05_01_preview output-folder: $(azure-libraries-for-java-folder)/sdk/resourcehealth/mgmt-v2020_05_01_preview From 8edb68782af0b34dd4b0c9f6d0accc617f2bd639 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Fri, 6 Aug 2021 11:30:21 -0700 Subject: [PATCH 31/68] Update ResourceHealth.json fixing the ErrorResponse obj --- .../preview/2020-05-01/ResourceHealth.json | 35 +++++++++++-------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json index ddd013a4c4a4..d92b7f7f89b0 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json @@ -704,20 +704,27 @@ "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 + "error": + { + "type": "object", + "description": "The error 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 + } + } } } } From 257a8a5386788dcbcc5d25e9a11a423052f086e3 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Fri, 6 Aug 2021 12:32:28 -0700 Subject: [PATCH 32/68] Update ResourceHealth.json fix ErrorResponse --- .../stable/2020-05-01/ResourceHealth.json | 35 +++++++++++-------- 1 file changed, 21 insertions(+), 14 deletions(-) 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 3fe9fb3b21f7..2f2c8f97f9f0 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 @@ -548,20 +548,27 @@ "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 + "error": + { + "type": "object", + "description": "The error 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 + } + } } } } From 9e0d11927078a84a782f41b4a13023894732f7e4 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Mon, 9 Aug 2021 09:25:12 -0700 Subject: [PATCH 33/68] Update ResourceHealth.json adding operations API --- .../preview/2020-05-01/ResourceHealth.json | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json index d92b7f7f89b0..59816876a843 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json @@ -171,6 +171,34 @@ } } }, + "/providers/Microsoft.ResourceHealth/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "description": "Lists available operations for the resourcehealth resource provider", + "parameters": [ + { + "$ref": "#/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" + } + } + } + } + }, "/{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses": { "get": { "tags": [ From 474f631f3146da0f3293fef6e5255c58bc3f005c Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Mon, 9 Aug 2021 09:25:57 -0700 Subject: [PATCH 34/68] Update ResourceHealth.json adding operations API --- .../stable/2020-05-01/ResourceHealth.json | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) 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 2f2c8f97f9f0..8bab88e2b9dc 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 @@ -124,6 +124,34 @@ } } }, + "/providers/Microsoft.ResourceHealth/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "description": "Lists available operations for the resourcehealth resource provider", + "parameters": [ + { + "$ref": "#/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" + } + } + } + } + }, "/{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses/current": { "get": { "tags": [ From 59e9cf60e9bb4918bca5866ad6d017332f24847e Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Mon, 9 Aug 2021 09:27:06 -0700 Subject: [PATCH 35/68] Update ResourceHealth.json removing EventIdParameter --- .../stable/2020-05-01/ResourceHealth.json | 7 ------- 1 file changed, 7 deletions(-) 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 8bab88e2b9dc..38a87f9fe560 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 @@ -650,13 +650,6 @@ "type": "string", "description": "Setting $expand=recommendedactions in url query expands the recommendedactions in the response.", "x-ms-parameter-location": "method" - }, - "EventIdParameter": { - "name": "eventId", - "in": "path", - "required": true, - "type": "string", - "description": "EventId for the Service health event" } } } From 09c7d64feb49cd6168a890e8c2fc00d3bb39122d Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Mon, 9 Aug 2021 09:41:09 -0700 Subject: [PATCH 36/68] Update readme.md fix .md file issue --- 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 a8b9bf145172..29285d0048f6 100644 --- a/specification/resourcehealth/resource-manager/readme.md +++ b/specification/resourcehealth/resource-manager/readme.md @@ -62,7 +62,7 @@ input-file: These settings apply only when `--tag=package-2020-05-preview` is specified on the command line. -``` yaml $(tag) == 'package-2020-05-01-preview' +``` yaml $(tag) == 'package-2020-05-preview' input-file: - Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json ``` From 39be9ad0ea5f6fc6e858afd8df623517b9204d5b Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Mon, 9 Aug 2021 09:47:06 -0700 Subject: [PATCH 37/68] Update ResourceHealth.json added operationsList --- .../preview/2020-05-01/ResourceHealth.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json index 59816876a843..742b25b14947 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json @@ -295,6 +295,21 @@ } } }, + "operationListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/operation" + }, + "description": "List of operations available in the resourcehealth resource provider." + } + }, + "required": [ + "value" + ], + "description": "Lists the operations response." + }, "faq": { "type": "object", "description": "Frequently asked question for the service health event", From ff279b1cfa461aa86aa2b88d8ca37dc44e4a9ba9 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Mon, 9 Aug 2021 09:47:54 -0700 Subject: [PATCH 38/68] Update ResourceHealth.json added operationsList --- .../stable/2020-05-01/ResourceHealth.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 38a87f9fe560..528af0890c5c 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 @@ -465,6 +465,21 @@ } } }, + "operationListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/operation" + }, + "description": "List of operations available in the resourcehealth resource provider." + } + }, + "required": [ + "value" + ], + "description": "Lists the operations response." + }, "recommendedAction": { "type": "object", "description": "Lists actions the user can take based on the current availabilityState of the resource.", From 0e7f9e1e1640ab81960b31f478e0497d4ededc7b Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Mon, 9 Aug 2021 13:04:23 -0700 Subject: [PATCH 39/68] Add files via upload fixing swagger prettier checks --- .../preview/2020-05-01/ResourceHealth.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json index 742b25b14947..9fdf34d87a73 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json @@ -747,8 +747,7 @@ "description": "Error details.", "type": "object", "properties": { - "error": - { + "error": { "type": "object", "description": "The error object.", "properties": { From de21a806c5bc6253457df47a846fa09790bc6656 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Mon, 9 Aug 2021 13:05:10 -0700 Subject: [PATCH 40/68] Add files via upload fixing swagger prettier checks --- .../stable/2020-05-01/ResourceHealth.json | 33 +++++++++---------- 1 file changed, 16 insertions(+), 17 deletions(-) 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 528af0890c5c..59137d3ba773 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 @@ -591,26 +591,25 @@ "description": "Error details.", "type": "object", "properties": { - "error": - { + "error": { "type": "object", "description": "The error 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 - } + "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 + } } } } From bd008cf2c0b1c1054c0f2182100f89a2dd5a2441 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Tue, 10 Aug 2021 03:26:48 -0700 Subject: [PATCH 41/68] Update ResourceHealth.json fixing semantic validation --- .../preview/2020-05-01/ResourceHealth.json | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json index 9fdf34d87a73..7b59f9b71396 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json @@ -310,6 +310,37 @@ ], "description": "Lists the operations response." }, + "operation": { + "description": "Operation available in the resourcehealth resource provider.", + "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." + } + } + } + } + }, "faq": { "type": "object", "description": "Frequently asked question for the service health event", From 646971f60f28c95f732d436b6a9071a2812a08c2 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Tue, 10 Aug 2021 03:27:42 -0700 Subject: [PATCH 42/68] Update ResourceHealth.json fixing semantic validation --- .../stable/2020-05-01/ResourceHealth.json | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) 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 59137d3ba773..0c7d27c9feb3 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 @@ -480,6 +480,37 @@ ], "description": "Lists the operations response." }, + "operation": { + "description": "Operation available in the resourcehealth resource provider.", + "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.", From ebc8b73128f41bef1ca8686f4ee801ef50eecaf1 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Tue, 10 Aug 2021 03:29:55 -0700 Subject: [PATCH 43/68] Create ResourceHealth.json fixing the preview folder name --- .../preview/2020-05-01-preview/ResourceHealth.json | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/ResourceHealth.json diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/ResourceHealth.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/ResourceHealth.json new file mode 100644 index 000000000000..2c63c0851048 --- /dev/null +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/ResourceHealth.json @@ -0,0 +1,2 @@ +{ +} From a7f882c43965d22e952b7f8b137971b1f35fee81 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Tue, 10 Aug 2021 03:32:03 -0700 Subject: [PATCH 44/68] Delete specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview directory delete temp --- .../preview/2020-05-01-preview/ResourceHealth.json | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/ResourceHealth.json diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/ResourceHealth.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/ResourceHealth.json deleted file mode 100644 index 2c63c0851048..000000000000 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/ResourceHealth.json +++ /dev/null @@ -1,2 +0,0 @@ -{ -} From 1cbe44a4dbe511f17850d55f1b2717548cc87a0e Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Tue, 10 Aug 2021 03:32:32 -0700 Subject: [PATCH 45/68] Rename specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json to specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/ResourceHealth.json renaming the folder name --- .../{2020-05-01 => 2020-05-01-preview}/ResourceHealth.json | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/{2020-05-01 => 2020-05-01-preview}/ResourceHealth.json (100%) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/ResourceHealth.json similarity index 100% rename from specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json rename to specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/ResourceHealth.json From a27ccd4c6100b7f9f7397f837bed050424de0d94 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Tue, 10 Aug 2021 03:33:29 -0700 Subject: [PATCH 46/68] Rename specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/examples/AvailabilityStatus_GetByResource.json to specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatus_GetByResource.json rename --- .../examples/AvailabilityStatus_GetByResource.json | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/{2020-05-01 => 2020-05-01-preview}/examples/AvailabilityStatus_GetByResource.json (100%) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/examples/AvailabilityStatus_GetByResource.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatus_GetByResource.json similarity index 100% rename from specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/examples/AvailabilityStatus_GetByResource.json rename to specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatus_GetByResource.json From 33a2b346d1bb5dda7860c36c013e870e4484e88f Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Tue, 10 Aug 2021 03:34:08 -0700 Subject: [PATCH 47/68] Rename specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/examples/AvailabilityStatuses_List.json to specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatuses_List.json rename --- .../examples/AvailabilityStatuses_List.json | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/{2020-05-01 => 2020-05-01-preview}/examples/AvailabilityStatuses_List.json (100%) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/examples/AvailabilityStatuses_List.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatuses_List.json similarity index 100% rename from specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/examples/AvailabilityStatuses_List.json rename to specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatuses_List.json From d9cac5322912b4d4596e3d09b346c874779f2c2c Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Tue, 10 Aug 2021 03:34:35 -0700 Subject: [PATCH 48/68] Rename specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/examples/AvailabilityStatuses_ListByResourceGroup.json to specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatuses_ListByResourceGroup.json rename --- .../examples/AvailabilityStatuses_ListByResourceGroup.json | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/{2020-05-01 => 2020-05-01-preview}/examples/AvailabilityStatuses_ListByResourceGroup.json (100%) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/examples/AvailabilityStatuses_ListByResourceGroup.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatuses_ListByResourceGroup.json similarity index 100% rename from specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/examples/AvailabilityStatuses_ListByResourceGroup.json rename to specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatuses_ListByResourceGroup.json From 3e7259ca7761d45d9aa92a5df911f7e095cfa87d Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Tue, 10 Aug 2021 03:35:00 -0700 Subject: [PATCH 49/68] Rename specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/examples/AvailabilityStatuses_ListBySubscriptionId.json to specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatuses_ListBySubscriptionId.json rename --- .../examples/AvailabilityStatuses_ListBySubscriptionId.json | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/{2020-05-01 => 2020-05-01-preview}/examples/AvailabilityStatuses_ListBySubscriptionId.json (100%) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/examples/AvailabilityStatuses_ListBySubscriptionId.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatuses_ListBySubscriptionId.json similarity index 100% rename from specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01/examples/AvailabilityStatuses_ListBySubscriptionId.json rename to specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatuses_ListBySubscriptionId.json From 59ebdb5d506e0a00e9ac0f4a742768b55636d486 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Tue, 10 Aug 2021 04:02:08 -0700 Subject: [PATCH 50/68] Update readme.md fixing 2020-05-01-preivew paths --- .../resourcehealth/resource-manager/readme.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/specification/resourcehealth/resource-manager/readme.md b/specification/resourcehealth/resource-manager/readme.md index 29285d0048f6..bf06ecded3a7 100644 --- a/specification/resourcehealth/resource-manager/readme.md +++ b/specification/resourcehealth/resource-manager/readme.md @@ -58,13 +58,13 @@ input-file: - Microsoft.ResourceHealth/preview/2018-08-01/ResourceHealth.json ``` -### Tag: package-2020-05-preview +### Tag: package-2020-05-01-preview -These settings apply only when `--tag=package-2020-05-preview` is specified on the command line. +These settings apply only when `--tag=package-2020-05-01-preview` is specified on the command line. -``` yaml $(tag) == 'package-2020-05-preview' +``` yaml $(tag) == 'package-2020-05-01-preview' input-file: -- Microsoft.ResourceHealth/preview/2020-05-01/ResourceHealth.json +- Microsoft.ResourceHealth/preview/2020-05-01-preview/ResourceHealth.json ``` ### Tag: package-2018-07-01 @@ -138,7 +138,7 @@ batch: - tag: package-2017-07 - tag: package-2015-01 - tag: package-2018-08-preview - - tag: package-2020-05-preview + - tag: package-2020-05-01-preview - tag: package-2018-07-01 - tag: package-2020-05-01 ``` @@ -180,12 +180,12 @@ java: regenerate-manager: true generate-interface: true ``` -### Tag: package-2020-05-preview and java +### Tag: package-2020-05-01-preview and java -These settings apply only when `--tag=package-2020-05-preview --java` is specified on the command line. +These settings apply only when `--tag=package-2020-05-01-preview --java` is specified on the command line. Please also specify `--azure-libraries-for-java=`. -``` yaml $(tag) == 'package-2020-05-preview' && $(java) && $(multiapi) +``` yaml $(tag) == 'package-2020-05-01-preview' && $(java) && $(multiapi) java: namespace: com.microsoft.azure.management.resourcehealth.v2020_05_01_preview output-folder: $(azure-libraries-for-java-folder)/sdk/resourcehealth/mgmt-v2020_05_01_preview From f23100e11e6f37c5b78250366af33b0cce996cec Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Tue, 7 Sep 2021 04:15:13 -0700 Subject: [PATCH 51/68] Update custom-words.txt reverting back occured typo --- custom-words.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/custom-words.txt b/custom-words.txt index 2272f69a2d34..cfe6420bea89 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -1300,7 +1300,6 @@ nysiis OAEP Occitan octokit -occured Odata odatatype ODBC From d6d8c99604e20a9456c0cc8f128c353b26ff163c Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Tue, 7 Sep 2021 04:34:07 -0700 Subject: [PATCH 52/68] Update AvailabilityStatus_GetByResource.json fix typo --- .../examples/AvailabilityStatus_GetByResource.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatus_GetByResource.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatus_GetByResource.json index e4bdd609abfa..4fa34cd4d976 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatus_GetByResource.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatus_GetByResource.json @@ -17,7 +17,7 @@ "reasonType": "Unplanned", "reasonChronicity": "Persistent", "detailedStatus": "Disk problems are preventing us from automatically recovering your virtual machine", - "occuredTime": "2016-03-29T09:12:00Z", + "occurredtime": "2016-03-29T09:12:00Z", "reportedTime": "2016-05-04T14:11:29.7598931Z", "rootCauseAttributionTime": "2016-03-29T09:13:00Z", "resolutionETA": "2016-03-29T09:37:00Z", From 1fed267a97b5770f8ffa6f17b28a41bd15476129 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Tue, 7 Sep 2021 04:34:42 -0700 Subject: [PATCH 53/68] Update AvailabilityStatuses_List.json fix typo --- .../2020-05-01-preview/examples/AvailabilityStatuses_List.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatuses_List.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatuses_List.json index 260510713144..a477925dcbd8 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatuses_List.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatuses_List.json @@ -18,7 +18,7 @@ "reasonType": "Unplanned", "reasonChronicity": "Persistent", "detailedStatus": "Disk problems are preventing us from automatically recovering your virtual machine", - "occuredTime": "2016-03-29T09:12:00Z", + "occurredTime": "2016-03-29T09:12:00Z", "reportedTime": "2016-05-04T14:11:29.7598931Z", "rootCauseAttributionTime": "2016-03-29T09:13:00Z", "resolutionETA": "2016-03-29T09:37:00Z", From 64061e0e80c94c062d6ec2e080233d29b6ae5d83 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Tue, 7 Sep 2021 04:35:01 -0700 Subject: [PATCH 54/68] Update AvailabilityStatuses_ListByResourceGroup.json fix typo --- .../examples/AvailabilityStatuses_ListByResourceGroup.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatuses_ListByResourceGroup.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatuses_ListByResourceGroup.json index a640ef1e750f..1ba446c95d76 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatuses_ListByResourceGroup.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatuses_ListByResourceGroup.json @@ -20,7 +20,7 @@ "reasonType": "Unplanned", "reasonChronicity": "Persistent", "detailedStatus": "We have not seen any issues with your virtual machine", - "occuredTime": "2016-03-29T09:12:00Z", + "occurredTime": "2016-03-29T09:12:00Z", "reportedTime": "2016-05-04T14:11:29.7598931Z", "recentlyResolved": { "unavailableOccurredTime": "2017-02-28T00:48:00Z", From d554a3110e0cc9a7b2ba084e87e1649da61bf474 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Tue, 7 Sep 2021 04:35:18 -0700 Subject: [PATCH 55/68] Update AvailabilityStatuses_ListBySubscriptionId.json fix typo --- .../examples/AvailabilityStatuses_ListBySubscriptionId.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatuses_ListBySubscriptionId.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatuses_ListBySubscriptionId.json index 242f79a10ba0..6624a97db692 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatuses_ListBySubscriptionId.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatuses_ListBySubscriptionId.json @@ -19,7 +19,7 @@ "reasonType": "Unplanned", "reasonChronicity": "Persistent", "detailedStatus": "We have not seen any issues with your virtual machine", - "occuredTime": "2016-03-29T09:12:00Z", + "occurredTime": "2016-03-29T09:12:00Z", "reportedTime": "2016-05-04T14:11:29.7598931Z", "recentlyResolved": { "unavailableOccurredTime": "2017-02-28T00:48:00Z", From 8896f47e3a87772e061820effb0adddd07536815 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Tue, 7 Sep 2021 04:35:37 -0700 Subject: [PATCH 56/68] Update AvailabilityStatus_GetByResource.json fix typo --- .../examples/AvailabilityStatus_GetByResource.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatus_GetByResource.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatus_GetByResource.json index 4fa34cd4d976..e2bc23a21f8c 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatus_GetByResource.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatus_GetByResource.json @@ -17,7 +17,7 @@ "reasonType": "Unplanned", "reasonChronicity": "Persistent", "detailedStatus": "Disk problems are preventing us from automatically recovering your virtual machine", - "occurredtime": "2016-03-29T09:12:00Z", + "occurredTime": "2016-03-29T09:12:00Z", "reportedTime": "2016-05-04T14:11:29.7598931Z", "rootCauseAttributionTime": "2016-03-29T09:13:00Z", "resolutionETA": "2016-03-29T09:37:00Z", From de49ec0ac588e99e98d2976f1712ef6db546bd08 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Tue, 7 Sep 2021 04:36:36 -0700 Subject: [PATCH 57/68] Update AvailabilityStatus_GetByResource.json fix typo --- .../2020-05-01/examples/AvailabilityStatus_GetByResource.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatus_GetByResource.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatus_GetByResource.json index 4603d3c4f1ba..ac6229e8e72d 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatus_GetByResource.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatus_GetByResource.json @@ -17,7 +17,7 @@ "reasonType": "Unplanned", "reasonChronicity": "Persistent", "detailedStatus": "Disk problems are preventing us from automatically recovering your virtual machine", - "occuredTime": "2016-03-29T09:12:00Z", + "occurredTime": "2016-03-29T09:12:00Z", "reportedTime": "2016-05-04T14:11:29.7598931Z", "rootCauseAttributionTime": "2016-03-29T09:13:00Z", "resolutionETA": "2016-03-29T09:37:00Z", From b98f53c16f03428123254e2d33819263d09e6d93 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Tue, 7 Sep 2021 04:36:48 -0700 Subject: [PATCH 58/68] Update AvailabilityStatuses_List.json fix typo --- .../stable/2020-05-01/examples/AvailabilityStatuses_List.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_List.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_List.json index 8cd2642b4645..da16bb7a237c 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_List.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_List.json @@ -18,7 +18,7 @@ "reasonType": "Unplanned", "reasonChronicity": "Persistent", "detailedStatus": "Disk problems are preventing us from automatically recovering your virtual machine", - "occuredTime": "2016-03-29T09:12:00Z", + "occurredTime": "2016-03-29T09:12:00Z", "reportedTime": "2016-05-04T14:11:29.7598931Z", "rootCauseAttributionTime": "2016-03-29T09:13:00Z", "resolutionETA": "2016-03-29T09:37:00Z", From 5c284314ddc2d45c2e063d68d3f6c8ceb14e93a2 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Tue, 7 Sep 2021 04:37:02 -0700 Subject: [PATCH 59/68] Update AvailabilityStatuses_ListByResourceGroup.json fix typo --- .../examples/AvailabilityStatuses_ListByResourceGroup.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_ListByResourceGroup.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_ListByResourceGroup.json index 82e06c4be0df..4a2d3ffb92b4 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_ListByResourceGroup.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_ListByResourceGroup.json @@ -20,7 +20,7 @@ "reasonType": "Unplanned", "reasonChronicity": "Persistent", "detailedStatus": "We have not seen any issues with your virtual machine", - "occuredTime": "2016-03-29T09:12:00Z", + "occurredTime": "2016-03-29T09:12:00Z", "reportedTime": "2016-05-04T14:11:29.7598931Z", "recentlyResolved": { "unavailableOccurredTime": "2017-02-28T00:48:00Z", From 82b65f60a149358abe48438bcc1ad00918b0ddb4 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Tue, 7 Sep 2021 04:37:13 -0700 Subject: [PATCH 60/68] Update AvailabilityStatuses_ListBySubscriptionId.json fix typo --- .../examples/AvailabilityStatuses_ListBySubscriptionId.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_ListBySubscriptionId.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_ListBySubscriptionId.json index de55e5e30a91..bcd3d2a0d225 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_ListBySubscriptionId.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_ListBySubscriptionId.json @@ -19,7 +19,7 @@ "reasonType": "Unplanned", "reasonChronicity": "Persistent", "detailedStatus": "We have not seen any issues with your virtual machine", - "occuredTime": "2016-03-29T09:12:00Z", + "occurredTime": "2016-03-29T09:12:00Z", "reportedTime": "2016-05-04T14:11:29.7598931Z", "recentlyResolved": { "unavailableOccurredTime": "2017-02-28T00:48:00Z", From 778906f6767438765fd0b15b282b6dac1e3c3890 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Tue, 7 Sep 2021 04:40:36 -0700 Subject: [PATCH 61/68] Update ResourceHealth.json fix typo --- .../stable/2020-05-01/ResourceHealth.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 0c7d27c9feb3..c5756b42382e 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 @@ -295,7 +295,7 @@ "modelAsString": true } }, - "occuredTime": { + "occurredTime": { "type": "string", "description": "Timestamp for when last change in health status occurred.", "format": "date-time" @@ -405,7 +405,7 @@ "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": { + "occurredTime": { "type": "string", "description": "Timestamp for when last change in health status occurred.", "format": "date-time" From 1a87d05ff6136a46f25d295580432b28d5213b50 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Tue, 7 Sep 2021 04:41:26 -0700 Subject: [PATCH 62/68] Update ResourceHealth.json fix typo --- .../preview/2020-05-01-preview/ResourceHealth.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/ResourceHealth.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/ResourceHealth.json index 7b59f9b71396..9e46d1060863 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/ResourceHealth.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/ResourceHealth.json @@ -497,7 +497,7 @@ "modelAsString": true } }, - "occuredTime": { + "occurredTime": { "type": "string", "description": "Timestamp for when last change in health status occurred.", "format": "date-time" @@ -607,7 +607,7 @@ "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": { + "occurredTime": { "type": "string", "description": "Timestamp for when last change in health status occurred.", "format": "date-time" From 42f3b3d6c5cf9a59f4be997d551cbc89cee2f7da Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Tue, 7 Sep 2021 04:51:25 -0700 Subject: [PATCH 63/68] Update AvailabilityStatuses_ListByResourceGroup.json fix typo --- .../examples/AvailabilityStatuses_ListByResourceGroup.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatuses_ListByResourceGroup.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatuses_ListByResourceGroup.json index 1ba446c95d76..0a19201f146e 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatuses_ListByResourceGroup.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatuses_ListByResourceGroup.json @@ -47,7 +47,7 @@ "reasonType": "Unplanned", "reasonChronicity": "Persistent", "detailedStatus": "Diskproblemsarepreventingusfromautomaticallyrecoveringyourvirtualmachine", - "occuredTime": "2016-03-29T09:12:00Z", + "occurredTime": "2016-03-29T09:12:00Z", "reportedTime": "2016-05-04T14:11:29.7598931Z", "rootCauseAttributionTime": "2016-03-29T09:13:00Z", "resolutionETA": "2016-03-29T09:37:00Z", From 9c6d5f55609ae90ea038dcf51590348dffe84b6d Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Tue, 7 Sep 2021 04:52:03 -0700 Subject: [PATCH 64/68] Update AvailabilityStatuses_List.json fix typo --- .../2020-05-01-preview/examples/AvailabilityStatuses_List.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatuses_List.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatuses_List.json index a477925dcbd8..0799319a7c41 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatuses_List.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatuses_List.json @@ -50,7 +50,7 @@ "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" + "occurredTime": "2016-03-28T16:23:00Z" } } ] From c4b8e30ff372d11e728bd05687fb64a722766000 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Tue, 7 Sep 2021 04:52:32 -0700 Subject: [PATCH 65/68] Update AvailabilityStatuses_ListBySubscriptionId.json fix typo --- .../examples/AvailabilityStatuses_ListBySubscriptionId.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatuses_ListBySubscriptionId.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatuses_ListBySubscriptionId.json index 6624a97db692..146e56a1e80b 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatuses_ListBySubscriptionId.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatuses_ListBySubscriptionId.json @@ -46,7 +46,7 @@ "reasonType": "Unplanned", "reasonChronicity": "Persistent", "detailedStatus": "Diskproblemsarepreventingusfromautomaticallyrecoveringyourvirtualmachine", - "occuredTime": "2016-03-29T09:12:00Z", + "occurredTime": "2016-03-29T09:12:00Z", "reportedTime": "2016-05-04T14:11:29.7598931Z", "rootCauseAttributionTime": "2016-03-29T09:13:00Z", "resolutionETA": "2016-03-29T09:37:00Z", From f563b419dea16263148c79c687dca3462b118a64 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Tue, 7 Sep 2021 04:53:11 -0700 Subject: [PATCH 66/68] Update AvailabilityStatuses_List.json fixed typo --- .../stable/2020-05-01/examples/AvailabilityStatuses_List.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_List.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_List.json index da16bb7a237c..14310d6c7d14 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_List.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_List.json @@ -50,7 +50,7 @@ "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" + "occurredTime": "2016-03-28T16:23:00Z" } } ] From 23d3b6c4ed2b5f21b3e8d6854dbd207609d332d6 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Tue, 7 Sep 2021 04:53:27 -0700 Subject: [PATCH 67/68] Update AvailabilityStatuses_ListByResourceGroup.json fix typo --- .../examples/AvailabilityStatuses_ListByResourceGroup.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_ListByResourceGroup.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_ListByResourceGroup.json index 4a2d3ffb92b4..69804124f6aa 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_ListByResourceGroup.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_ListByResourceGroup.json @@ -47,7 +47,7 @@ "reasonType": "Unplanned", "reasonChronicity": "Persistent", "detailedStatus": "Diskproblemsarepreventingusfromautomaticallyrecoveringyourvirtualmachine", - "occuredTime": "2016-03-29T09:12:00Z", + "occurredTime": "2016-03-29T09:12:00Z", "reportedTime": "2016-05-04T14:11:29.7598931Z", "rootCauseAttributionTime": "2016-03-29T09:13:00Z", "resolutionETA": "2016-03-29T09:37:00Z", From 65ac3daaf77f62b61574ca95a05e63d324247ba0 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Tue, 7 Sep 2021 04:53:51 -0700 Subject: [PATCH 68/68] Update AvailabilityStatuses_ListBySubscriptionId.json fixed typo --- .../examples/AvailabilityStatuses_ListBySubscriptionId.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_ListBySubscriptionId.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_ListBySubscriptionId.json index bcd3d2a0d225..c5211db0a7b5 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_ListBySubscriptionId.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_ListBySubscriptionId.json @@ -46,7 +46,7 @@ "reasonType": "Unplanned", "reasonChronicity": "Persistent", "detailedStatus": "Diskproblemsarepreventingusfromautomaticallyrecoveringyourvirtualmachine", - "occuredTime": "2016-03-29T09:12:00Z", + "occurredTime": "2016-03-29T09:12:00Z", "reportedTime": "2016-05-04T14:11:29.7598931Z", "rootCauseAttributionTime": "2016-03-29T09:13:00Z", "resolutionETA": "2016-03-29T09:37:00Z",