dotnet-monitor/documentation/api/info.md

57 строки
1.4 KiB
Markdown
Исходник Постоянная ссылка Обычный вид История

2021-07-15 20:34:09 +03:00
# Info - Get
Gets information about the `dotnet monitor` version, the runtime version, and the diagnostic port settings.
## HTTP Route
```http
GET /info HTTP/1.1
```
## Host Address
The default host address for these routes is `https://localhost:52323`.
## Authentication
Authentication is enforced for this route. See [Authentication](./../authentication.md) for further information.
## Responses
| Name | Type | Description | Content Type |
|---|---|---|---|
| 200 OK | | Information about `dotnet monitor` formatted as JSON. | `application/json` |
| 400 Bad Request | [ValidationProblemDetails](definitions.md#validationproblemdetails) | An error occurred due to invalid input. The response body describes the specific problem(s). | `application/problem+json` |
2021-07-15 20:34:09 +03:00
| 401 Unauthorized | | Authentication is required to complete the request. See [Authentication](./../authentication.md) for further information. | |
## Examples
### Sample Request
```http
GET /info HTTP/1.1
Host: localhost:52323
```
### Sample Response
```http
HTTP/1.1 200 OK
Content-Type: application/json
{
"version": "6.0.0",
"runtimeVersion": "6.0.0",
2021-07-15 20:34:09 +03:00
"diagnosticPortMode": "Connect",
"diagnosticPortName": null
}
```
## Supported Runtimes
| Operating System | Runtime Version |
|---|---|
| Windows | .NET Core 3.1, .NET 5+ |
| Linux | .NET Core 3.1, .NET 5+ |
| MacOS | .NET Core 3.1, .NET 5+ |