Skip to content

Commit

Permalink
added missing api
Browse files Browse the repository at this point in the history
  • Loading branch information
abhayohri committed Mar 1, 2023
1 parent 61b7826 commit 111d6ca
Show file tree
Hide file tree
Showing 4 changed files with 423 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,153 @@
}
}
},
"/{resourceUri}/providers/Microsoft.ResourceHealth/childAvailabilityStatuses/current": {
"get": {
"tags": [
"ChildAvailabilityStatuses"
],
"operationId": "ChildAvailabilityStatuses_GetByResource",
"description": "Gets current availability status for a single resource",
"parameters": [
{
"name": "resourceUri",
"in": "path",
"required": true,
"type": "string",
"description": "The fully qualified ID of the resource, including the resource name and resource type. Currently the API only support one nesting level resource types : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}",
"x-ms-skip-url-encoding": true
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/FilterParameter"
},
{
"$ref": "#/parameters/ExpandParameter"
}
],
"responses": {
"200": {
"description": "The body contains the current availability status for a single resource",
"schema": {
"$ref": "#/definitions/availabilityStatus"
}
},
"default": {
"description": "DefaultErrorResponse",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
},
"x-ms-examples": {
"GetCurrentHealthByResource": {
"$ref": "./examples/ChildAvailabilityStatus_GetByResource.json"
}
}
}
},
"/{resourceUri}/providers/Microsoft.ResourceHealth/childAvailabilityStatuses": {
"get": {
"tags": [
"ChildAvailabilityStatuses"
],
"operationId": "ChildAvailabilityStatuses_List",
"description": "Lists the historical availability statuses for a single child resource. Use the nextLink property in the response to get the next page of availability status",
"parameters": [
{
"name": "resourceUri",
"in": "path",
"required": true,
"type": "string",
"description": "The fully qualified ID of the resource, including the resource name and resource type. Currently the API only support one nesting level resource types : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}",
"x-ms-skip-url-encoding": true
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/FilterParameter"
},
{
"$ref": "#/parameters/ExpandParameter"
}
],
"responses": {
"200": {
"description": "The body contains the list of the historical availability statuses for a single child resource",
"schema": {
"$ref": "#/definitions/availabilityStatusListResult"
}
},
"default": {
"description": "DefaultErrorResponse",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
},
"x-ms-examples": {
"GetHealthHistoryByResource": {
"$ref": "./examples/ChildAvailabilityStatuses_List.json"
}
}
}
},
"/{resourceUri}/providers/Microsoft.ResourceHealth/childResources": {
"get": {
"tags": [
"ChildResources"
],
"operationId": "ChildResources_List",
"description": "Lists the all the children and its current health status for a parent resource. Use the nextLink property in the response to get the next page of children current health",
"parameters": [
{
"name": "resourceUri",
"in": "path",
"required": true,
"type": "string",
"description": "The fully qualified ID of the resource, including the resource name and resource type. Currently the API only support not nested parent resource type: /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}",
"x-ms-skip-url-encoding": true
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/FilterParameter"
},
{
"$ref": "#/parameters/ExpandParameter"
}
],
"responses": {
"200": {
"description": "The body contains the list of the children's current availability statuses for a single resource which contains children",
"schema": {
"$ref": "#/definitions/availabilityStatusListResult"
}
},
"default": {
"description": "DefaultErrorResponse",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
},
"x-ms-examples": {
"GetHealthHistoryByResource": {
"$ref": "./examples/ChildResources_List.json"
}
}
}
},
"/providers/Microsoft.ResourceHealth/emergingIssues": {
"get": {
"tags": [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"parameters": {
"resourceUri": "resourceUri",
"api-version": "2022-10-01",
"$expand": "recommendedactions"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/4/providers/Microsoft.ResourceHealth/child/availabilityStatuses/current",
"name": "current",
"type": "Microsoft.ResourceHealth/AvailabilityStatuses",
"location": "southcentralus",
"properties": {
"availabilityState": "Available",
"summary": "There aren't any known Azure platform problems affecting this virtual machine",
"detailedStatus": "",
"reasonType": "",
"occuredTime": "2018-11-30T23:37:44Z",
"reasonChronicity": "Persistent",
"reportedTime": "2018-12-04T01:19:11.955255Z",
"recommendedActions": [
{
"action": "To start this virtual machine, open the resource blade and click Start",
"actionUrl": "<#ResourceBlade>",
"actionUrlText": "resource blade"
},
{
"action": "If you are experiencing problems you believe are caused by Azure, contact support",
"actionUrl": "<#SupportCase>",
"actionUrlText": "contact support"
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
{
"parameters": {
"resourceUri": "resourceUri",
"api-version": "2022-10-01"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/4/providers/Microsoft.ResourceHealth/availabilityStatuses/current",
"name": "current",
"type": "Microsoft.ResourceHealth/AvailabilityStatuses",
"location": "southcentralus",
"properties": {
"availabilityState": "Available",
"summary": "There aren't any known Azure platform problems affecting this virtual machine",
"detailedStatus": "",
"reasonType": "",
"recommendedActions": [
{
"action": "If you're having problems, use the Troubleshoot tool to get recommended solutions.",
"actionUrl": "<#TroubleshootV2Blade>",
"actionUrlText": "Troubleshoot tool"
},
{
"action": "If you are experiencing problems you believe are caused by Azure, contact support",
"actionUrl": "<#SupportCase>",
"actionUrlText": "contact support"
}
],
"occuredTime": "2018-11-30T23:37:44Z",
"reasonChronicity": "Transient",
"reportedTime": "2018-12-05T19:45:45.6640838Z"
}
},
{
"id": "/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/4/providers/Microsoft.ResourceHealth/availabilityStatuses/2018-11-30+23%3a36%3a03Z",
"name": "2018-11-30+23%3a36%3a03Z",
"type": "Microsoft.ResourceHealth/AvailabilityStatuses",
"location": "southcentralus",
"properties": {
"availabilityState": "Unavailable",
"summary": "This virtual machine is rebooting as requested by an authorized user or process. It will be back online after the reboot completes.",
"detailedStatus": "",
"reasonType": "Customer Initiated",
"rootCauseAttributionTime": "2018-11-30T23:36:02.514Z",
"recommendedActions": [
{
"action": "Check back here for status updates",
"actionUrl": "",
"actionUrlText": ""
},
{
"action": "If you are experiencing problems you believe are caused by Azure, contact support",
"actionUrl": "<#SupportCase>",
"actionUrlText": "contact support"
}
],
"occuredTime": "2018-11-30T23:36:03Z",
"reasonChronicity": "Transient",
"resolutionETA": "2018-11-30T23:56:03Z"
}
},
{
"id": "/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/4/providers/Microsoft.ResourceHealth/availabilityStatuses/2018-11-30+22%3a32%3a12Z",
"name": "2018-11-30+22%3a32%3a12Z",
"type": "Microsoft.ResourceHealth/AvailabilityStatuses",
"location": "southcentralus",
"properties": {
"availabilityState": "Available",
"summary": "There aren't any known Azure platform problems affecting this virtual machine",
"detailedStatus": "",
"reasonType": "",
"recommendedActions": [
{
"action": "If you're having problems, use the Troubleshoot tool to get recommended solutions.",
"actionUrl": "<#TroubleshootV2Blade>",
"actionUrlText": "Troubleshoot tool"
},
{
"action": "If you are experiencing problems you believe are caused by Azure, contact support",
"actionUrl": "<#SupportCase>",
"actionUrlText": "contact support"
}
],
"occuredTime": "2018-11-30T22:32:12Z",
"reasonChronicity": "Transient"
}
},
{
"id": "/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/4/providers/Microsoft.ResourceHealth/availabilityStatuses/2018-11-30+22%3a30%3a23Z",
"name": "2018-11-30+22%3a30%3a23Z",
"type": "Microsoft.ResourceHealth/AvailabilityStatuses",
"location": "southcentralus",
"properties": {
"availabilityState": "Unavailable",
"summary": "This virtual machine is rebooting as requested by an authorized user or process. It will be back online after the reboot completes.",
"detailedStatus": "",
"reasonType": "Customer Initiated",
"rootCauseAttributionTime": "2018-11-30T22:30:22.256Z",
"recommendedActions": [
{
"action": "Check back here for status updates",
"actionUrl": "",
"actionUrlText": ""
},
{
"action": "If you are experiencing problems you believe are caused by Azure, contact support",
"actionUrl": "<#SupportCase>",
"actionUrlText": "contact support"
}
],
"occuredTime": "2018-11-30T22:30:23Z",
"reasonChronicity": "Transient",
"resolutionETA": "2018-11-30T22:50:23Z"
}
},
{
"id": "/subscriptions/227b734f-e14f-4de6-b7fc-3190c21e69f6/resourceGroups/JUHACKETRHCTEST/providers/Microsoft.Compute/virtualMachineScaleSets/rhctest/virtualMachines/4/providers/Microsoft.ResourceHealth/availabilityStatuses/2018-11-21+00%3a00%3a00Z",
"name": "2018-11-21+00%3a00%3a00Z",
"type": "Microsoft.ResourceHealth/AvailabilityStatuses",
"location": "southcentralus",
"properties": {
"availabilityState": "Available",
"summary": "There aren't any known Azure platform problems affecting this virtual machine",
"detailedStatus": "",
"reasonType": "",
"recommendedActions": [
{
"action": "If you're having problems, use the Troubleshoot tool to get recommended solutions.",
"actionUrl": "<#TroubleshootV2Blade>",
"actionUrlText": "Troubleshoot tool"
},
{
"action": "If you are experiencing problems you believe are caused by Azure, contact support",
"actionUrl": "<#SupportCase>",
"actionUrlText": "contact support"
}
],
"occuredTime": "2018-11-21T00:00:00Z",
"reasonChronicity": "Transient"
}
}
]
}
}
}
}
Loading

0 comments on commit 111d6ca

Please sign in to comment.