describe_db_log_files
¶
describe_db_log_files(
*,
config_overrides: Optional[RDSClientConfig] = None,
db_instance_identifier: Optional[String] = None,
filename_contains: Optional[String] = None,
file_last_written: Optional[Long] = None,
file_size: Optional[Long] = None,
filters: Optional[FilterList] = None,
max_records: Optional[IntegerOptional] = None,
marker: Optional[String] = None,
) -> DescribeDBLogFilesResponse
Returns a list of DB log files for the DB instance.
This command doesn't apply to RDS Custom.
Parameters:
-
db_instance_identifier(Optional[String], default:None) –The customer-assigned name of the DB instance that contains the log files you want to list.
Constraints:
-
Must match the identifier of an existing DBInstance.
-
-
filename_contains(Optional[String], default:None) –Filters the available log files for log file names that contain the specified string.
-
file_last_written(Optional[Long], default:None) –Filters the available log files for files written since the specified date, in POSIX timestamp format with milliseconds.
-
file_size(Optional[Long], default:None) –Filters the available log files for files larger than the specified size.
-
filters(Optional[FilterList], default:None) –This parameter isn't currently supported.
-
max_records(Optional[IntegerOptional], default:None) –The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so you can retrieve the remaining results.
-
marker(Optional[String], default:None) –The pagination token provided in the previous request. If this parameter is specified the response includes only records beyond the marker, up to MaxRecords.
Raises:
-
DBInstanceNotFoundFault–DBInstanceIdentifierdoesn't refer to an existing DB instance. -
DBInstanceNotReadyFault–An attempt to download or examine log files didn't succeed because an Aurora Serverless v2 instance was paused.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To describe the log files for a DB instance The following example retrieves details about the log files for the specified DB instance.
Source code in docs_src/capo_rds/_services/rds.py
6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 | |