Skip to content

list_autonomous_database_backups async

list_autonomous_database_backups(
    autonomous_database_id: ResourceId,
    *,
    config_overrides: Optional[AsyncodbClientConfig] = None,
    max_results: Optional[int] = None,
    next_token: Optional[str] = None,
    status: Optional[AutonomousDatabaseBackupStatus] = None,
    type: Optional[AutonomousDatabaseBackupType] = None,
) -> ListAutonomousDatabaseBackupsOutput

Lists the backups of the specified Autonomous Database.

Parameters:

  • max_results (Optional[int], default: None ) –

    The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output.

  • next_token (Optional[str], default: None ) –

    The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.

  • autonomous_database_id (ResourceId) –

    The unique identifier of the Autonomous Database whose backups you want to list.

  • status (Optional[AutonomousDatabaseBackupStatus], default: None ) –

    The status of the Autonomous Database backups to return results for.

  • type (Optional[AutonomousDatabaseBackupType], default: None ) –

    The type of the Autonomous Database backups to return results for.

Raises:

  • AccessDeniedException –

    You don't have sufficient access to perform this action. Make sure you have the required permissions and try again.

  • InternalServerException –

    Occurs when there is an internal failure in the Oracle Database@Amazon Web Services service. Wait and try again.

  • ResourceNotFoundException –

    The operation tried to access a resource that doesn't exist. Make sure you provided the correct resource and try again.

  • ThrottlingException –

    The request was denied due to request throttling.

  • ValidationException –

    The request has failed validation because it is missing required fields or has invalid inputs.

  • UnknownServiceError –

    The service returned an error code this client does not model.

Source code in docs_src/capo_odb/_services/async_odb.py
async def list_autonomous_database_backups(
    self,
    autonomous_database_id: "capo_odb.types.resource_id.ResourceId",
    *,
    config_overrides: Optional[AsyncodbClientConfig] = None,
    max_results: Optional[int] = None,
    next_token: Optional[str] = None,
    status: Optional[
        "capo_odb.types.autonomous_database_backup_status.AutonomousDatabaseBackupStatus"
    ] = None,
    type: Optional[
        "capo_odb.types.autonomous_database_backup_type.AutonomousDatabaseBackupType"
    ] = None,
) -> "capo_odb.types.list_autonomous_database_backups_output.ListAutonomousDatabaseBackupsOutput":
    """<p>Lists the backups of the specified Autonomous Database.</p>

    Args:
        max_results: <p>The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output.</p>
        next_token: <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
        autonomous_database_id: <p>The unique identifier of the Autonomous Database whose backups you want to list.</p>
        status: <p>The status of the Autonomous Database backups to return results for.</p>
        type: <p>The type of the Autonomous Database backups to return results for.</p>

    Raises:
        capo_odb.errors.access_denied_exception.AccessDeniedException: <p>You don't have sufficient access to perform this action. Make sure you have the required permissions and try again.</p>
        capo_odb.errors.internal_server_exception.InternalServerException: <p>Occurs when there is an internal failure in the Oracle Database@Amazon Web Services service. Wait and try again.</p>
        capo_odb.errors.resource_not_found_exception.ResourceNotFoundException: <p>The operation tried to access a resource that doesn't exist. Make sure you provided the correct resource and try again.</p>
        capo_odb.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
        capo_odb.errors.validation_exception.ValidationException: <p>The request has failed validation because it is missing required fields or has invalid inputs.</p>
        capo_odb.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_odb.types.list_autonomous_database_backups_input.ListAutonomousDatabaseBackupsInput]",
    ) -> AsyncOperationResponse[
        "capo_odb.types.list_autonomous_database_backups_output.ListAutonomousDatabaseBackupsOutput"
    ]:
        import capo_odb._operations.odb.list_autonomous_database_backups

        (
            output,
            http_response,
        ) = await capo_odb._operations.odb.list_autonomous_database_backups.async_list_autonomous_database_backups(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListAutonomousDatabaseBackups")
    )
    input_: capo_odb.types.list_autonomous_database_backups_input.ListAutonomousDatabaseBackupsInput = {
        "autonomous_database_id": autonomous_database_id
    }
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token
    if status is not None:
        input_["status"] = status
    if type is not None:
        input_["type"] = type

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output