Get Container Log
Gets the logs for the container.
Get the logs for the container of a given code package of an application.
Request
Method | Request URI |
---|---|
GET | /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/applications/{applicationName}/services/{serviceName}/replicas/{replicaName}/codePackages/{codePackageName}/logs?api-version=2018-07-01-preview&tail={tail} |
Parameters
Name | Type | Required | Location |
---|---|---|---|
subscriptionId |
string | Yes | Path |
resourceGroupName |
string | Yes | Path |
applicationName |
string | Yes | Path |
serviceName |
string | Yes | Path |
replicaName |
string | Yes | Path |
codePackageName |
string | Yes | Path |
api-version |
string | Yes | Query |
tail |
integer | No | Query |
subscriptionId
Type: string
Required: Yes
The customer subscription identifier
resourceGroupName
Type: string
Required: Yes
Azure resource group name
applicationName
Type: string
Required: Yes
The identity of the application.
serviceName
Type: string
Required: Yes
The identity of the service.
replicaName
Type: string
Required: Yes
The identity of the service replica.
codePackageName
Type: string
Required: Yes
The name of the code package.
api-version
Type: string
Required: Yes
Default: 2018-07-01-preview
The version of the API. This parameter is required and its value must be 2018-07-01-preview
.
tail
Type: integer
Required: No
Number of lines to show from the end of the logs. Default is 100.
Responses
HTTP Status Code | Description | Response Schema |
---|---|---|
200 (OK) | Successful response |
ContainerLogs |
All other status codes | Error |
ErrorModel |
Examples
ContainerLogsList
Request
GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sbz_demo/providers/Microsoft.ServiceFabricMesh/applications/sbzDocApp/services/sbzDocService/replicas/0/codePackages/sbzDocCode/logs?api-version=2018-07-01-preview
200 Response
Body
{
"content": " * Running on http://0.0.0.0:8080/ (Press CTRL+C to quit)\n * Downloading style https://assets-cdn.github.com/assets/frameworks-8f281eb0a8d2308ceb36e714ba3c3aec.css\n * Downloading style https://assets-cdn.github.com/assets/github-a698da0d53574b056d3c79ac732d4a70.css\n * Downloading style https://assets-cdn.github.com/assets/site-83dc1f7ebc9c7461fe1eab799b56c4c4.css\n * Cached all downloads in /root/.grip/cache-4.5.2\n167.220.0.83 - - [06/Apr/2018 07:16:02] \"GET / HTTP/1.1\" 200 -\n167.220.0.83 - - [06/Apr/2018 07:16:02] \"GET /__/grip/asset/frameworks-8f281eb0a8d2308ceb36e714ba3c3aec.css HTTP/1.1\" 200 -\n167.220.0.83 - - [06/Apr/2018 07:16:02] \"GET /__/grip/asset/site-83dc1f7ebc9c7461fe1eab799b56c4c4.css HTTP/1.1\" 200 -\n167.220.0.83 - - [06/Apr/2018 07:16:02] \"GET /__/grip/asset/github-a698da0d53574b056d3c79ac732d4a70.css HTTP/1.1\" 200 -\n167.220.0.83 - - [06/Apr/2018 07:16:02] \"GET /__/grip/static/octicons/octicons.css HTTP/1.1\" 200 -\n167.220.0.83 - - [06/Apr/2018 07:16:03] \"GET /__/grip/static/octicons/octicons.woff2?ef21c39f0ca9b1b5116e5eb7ac5eabe6 HTTP/1.1\" 200 -\n167.220.0.83 - - [06/Apr/2018 07:16:03] \"GET /__/grip/static/favicon.ico HTTP/1.1\" 200 -\n167.220.0.83 - - [06/Apr/2018 07:16:05] \"GET /seabreeze-index.md HTTP/1.1\" 200 -\n167.220.0.83 - - [06/Apr/2018 07:16:09] \"GET /seabreeze-api-application_get.md HTTP/1.1\" 200 -\n"
}