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
6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 | |