# PodLogs returns stream of log entries for the specified pod. Pod

`GET /api/v1/applications/{name}/pods/{podName}/logs`

Authentication (security requirement alternatives):

```json
[
  {
    "bearer": []
  }
]
```

- bearer: apiKey, header Authorization. A token sent as `Authorization: Bearer <token>`. [API Docs](https://sourcey-argocd.pages.dev/developer-guide/api-docs/index.md#authorization) shows how to get one.

Parameters:

- `name` (path, string, required)
  Type: string

- `podName` (path, string, required)
  Type: string

- `namespace` (query, string, optional)
  Type: string

- `container` (query, string, optional)
  Type: string

- `sinceSeconds` (query, string, int64, optional)
  Type: string, int64

- `sinceTime.seconds` (query, string, int64, optional) - Represents seconds of UTC time since Unix epoch
1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
9999-12-31T23:59:59Z inclusive.
  Type: string, int64

- `sinceTime.nanos` (query, integer, int32, optional) - Non-negative fractions of a second at nanosecond resolution. Negative
second values with fractions must still have non-negative nanos values
that count forward in time. Must be from 0 to 999,999,999
inclusive. This field may be limited in precision depending on context.
  Type: integer, int32

- `tailLines` (query, string, int64, optional)
  Type: string, int64

- `follow` (query, boolean, optional)
  Type: boolean

- `untilTime` (query, string, optional)
  Type: string

- `filter` (query, string, optional)
  Type: string

- `kind` (query, string, optional)
  Type: string

- `group` (query, string, optional)
  Type: string

- `resourceName` (query, string, optional)
  Type: string

- `previous` (query, boolean, optional)
  Type: boolean

- `appNamespace` (query, string, optional)
  Type: string

- `project` (query, string, optional)
  Type: string

- `matchCase` (query, boolean, optional)
  Type: boolean

Responses:

- 200: A successful response.(streaming responses)

Content type: application/json

Type: object

- `error` (optional)
  Reference: [runtimeStreamError](https://sourcey-argocd.pages.dev/api/models/runtimestreamerror/index.md); Type: object

- `result` (optional)
  Reference: [applicationLogEntry](https://sourcey-argocd.pages.dev/api/models/applicationlogentry/index.md); Type: object

- default: An unexpected error response.

Content type: application/json

Type: object

Schema: [runtimeError](https://sourcey-argocd.pages.dev/api/models/runtimeerror/index.md)

- `code` (optional)
  Type: integer, int32

- `details` (optional)
  Type: array
  
  Items:
    Reference: [protobufAny](https://sourcey-argocd.pages.dev/api/models/protobufany/index.md); Type: object

- `error` (optional)
  Type: string

- `message` (optional)
  Type: string

## Examples

### cURL

```bash
curl -X GET 'https://argocd.example.com/api/v1/applications/string/pods/string/logs' \
  -H 'Authorization: YOUR_TOKEN'
```

### JavaScript

```javascript
const response = await fetch('https://argocd.example.com/api/v1/applications/string/pods/string/logs', {
  method: 'GET',
  headers: {
    'Authorization': 'YOUR_TOKEN',
  },
});

const data = await response.text();
```

### Python

```python
import requests

response = requests.get(
    'https://argocd.example.com/api/v1/applications/string/pods/string/logs',
    headers={
        'Authorization': 'YOUR_TOKEN',
    },
)
print(response.text)
```
