Docker v4.5.6 published on Tuesday, Sep 24, 2024 by Pulumi
docker.getLogs
Explore with Pulumi AI
docker.getLogs
provides logs from specific container
Using getLogs
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getLogs(args: GetLogsArgs, opts?: InvokeOptions): Promise<GetLogsResult>
function getLogsOutput(args: GetLogsOutputArgs, opts?: InvokeOptions): Output<GetLogsResult>
def get_logs(details: Optional[bool] = None,
discard_headers: Optional[bool] = None,
follow: Optional[bool] = None,
logs_list_string_enabled: Optional[bool] = None,
name: Optional[str] = None,
show_stderr: Optional[bool] = None,
show_stdout: Optional[bool] = None,
since: Optional[str] = None,
tail: Optional[str] = None,
timestamps: Optional[bool] = None,
until: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLogsResult
def get_logs_output(details: Optional[pulumi.Input[bool]] = None,
discard_headers: Optional[pulumi.Input[bool]] = None,
follow: Optional[pulumi.Input[bool]] = None,
logs_list_string_enabled: Optional[pulumi.Input[bool]] = None,
name: Optional[pulumi.Input[str]] = None,
show_stderr: Optional[pulumi.Input[bool]] = None,
show_stdout: Optional[pulumi.Input[bool]] = None,
since: Optional[pulumi.Input[str]] = None,
tail: Optional[pulumi.Input[str]] = None,
timestamps: Optional[pulumi.Input[bool]] = None,
until: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLogsResult]
func GetLogs(ctx *Context, args *GetLogsArgs, opts ...InvokeOption) (*GetLogsResult, error)
func GetLogsOutput(ctx *Context, args *GetLogsOutputArgs, opts ...InvokeOption) GetLogsResultOutput
> Note: This function is named GetLogs
in the Go SDK.
public static class GetLogs
{
public static Task<GetLogsResult> InvokeAsync(GetLogsArgs args, InvokeOptions? opts = null)
public static Output<GetLogsResult> Invoke(GetLogsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLogsResult> getLogs(GetLogsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: docker:index/getLogs:getLogs
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- The name of the Docker Container
- Details bool
- Discard
Headers bool - Discard headers that docker appends to each log entry
- Follow bool
- Logs
List boolString Enabled - If true populate computed value
logs_list_string
- Show
Stderr bool - Show
Stdout bool - Since string
- Tail string
- Timestamps bool
- Until string
- Name string
- The name of the Docker Container
- Details bool
- Discard
Headers bool - Discard headers that docker appends to each log entry
- Follow bool
- Logs
List boolString Enabled - If true populate computed value
logs_list_string
- Show
Stderr bool - Show
Stdout bool - Since string
- Tail string
- Timestamps bool
- Until string
- name String
- The name of the Docker Container
- details Boolean
- discard
Headers Boolean - Discard headers that docker appends to each log entry
- follow Boolean
- logs
List BooleanString Enabled - If true populate computed value
logs_list_string
- show
Stderr Boolean - show
Stdout Boolean - since String
- tail String
- timestamps Boolean
- until String
- name string
- The name of the Docker Container
- details boolean
- discard
Headers boolean - Discard headers that docker appends to each log entry
- follow boolean
- logs
List booleanString Enabled - If true populate computed value
logs_list_string
- show
Stderr boolean - show
Stdout boolean - since string
- tail string
- timestamps boolean
- until string
- name str
- The name of the Docker Container
- details bool
- discard_
headers bool - Discard headers that docker appends to each log entry
- follow bool
- logs_
list_ boolstring_ enabled - If true populate computed value
logs_list_string
- show_
stderr bool - show_
stdout bool - since str
- tail str
- timestamps bool
- until str
- name String
- The name of the Docker Container
- details Boolean
- discard
Headers Boolean - Discard headers that docker appends to each log entry
- follow Boolean
- logs
List BooleanString Enabled - If true populate computed value
logs_list_string
- show
Stderr Boolean - show
Stdout Boolean - since String
- tail String
- timestamps Boolean
- until String
getLogs Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Logs
List List<string>Strings - List of container logs, each element is a line.
- Name string
- The name of the Docker Container
- Details bool
- Discard
Headers bool - Discard headers that docker appends to each log entry
- Follow bool
- Logs
List boolString Enabled - If true populate computed value
logs_list_string
- Show
Stderr bool - Show
Stdout bool - Since string
- Tail string
- Timestamps bool
- Until string
- Id string
- The provider-assigned unique ID for this managed resource.
- Logs
List []stringStrings - List of container logs, each element is a line.
- Name string
- The name of the Docker Container
- Details bool
- Discard
Headers bool - Discard headers that docker appends to each log entry
- Follow bool
- Logs
List boolString Enabled - If true populate computed value
logs_list_string
- Show
Stderr bool - Show
Stdout bool - Since string
- Tail string
- Timestamps bool
- Until string
- id String
- The provider-assigned unique ID for this managed resource.
- logs
List List<String>Strings - List of container logs, each element is a line.
- name String
- The name of the Docker Container
- details Boolean
- discard
Headers Boolean - Discard headers that docker appends to each log entry
- follow Boolean
- logs
List BooleanString Enabled - If true populate computed value
logs_list_string
- show
Stderr Boolean - show
Stdout Boolean - since String
- tail String
- timestamps Boolean
- until String
- id string
- The provider-assigned unique ID for this managed resource.
- logs
List string[]Strings - List of container logs, each element is a line.
- name string
- The name of the Docker Container
- details boolean
- discard
Headers boolean - Discard headers that docker appends to each log entry
- follow boolean
- logs
List booleanString Enabled - If true populate computed value
logs_list_string
- show
Stderr boolean - show
Stdout boolean - since string
- tail string
- timestamps boolean
- until string
- id str
- The provider-assigned unique ID for this managed resource.
- logs_
list_ Sequence[str]strings - List of container logs, each element is a line.
- name str
- The name of the Docker Container
- details bool
- discard_
headers bool - Discard headers that docker appends to each log entry
- follow bool
- logs_
list_ boolstring_ enabled - If true populate computed value
logs_list_string
- show_
stderr bool - show_
stdout bool - since str
- tail str
- timestamps bool
- until str
- id String
- The provider-assigned unique ID for this managed resource.
- logs
List List<String>Strings - List of container logs, each element is a line.
- name String
- The name of the Docker Container
- details Boolean
- discard
Headers Boolean - Discard headers that docker appends to each log entry
- follow Boolean
- logs
List BooleanString Enabled - If true populate computed value
logs_list_string
- show
Stderr Boolean - show
Stdout Boolean - since String
- tail String
- timestamps Boolean
- until String
Package Details
- Repository
- Docker pulumi/pulumi-docker
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
docker
Terraform Provider.