Skip to content

get_cloud_exadata_infrastructure_unallocated_resources async

get_cloud_exadata_infrastructure_unallocated_resources(
    cloud_exadata_infrastructure_id: ResourceIdOrArn,
    *,
    config_overrides: Optional[AsyncodbClientConfig] = None,
    db_servers: Optional[StringList] = None,
) -> GetCloudExadataInfrastructureUnallocatedResourcesOutput

Retrieves information about unallocated resources in a specified Cloud Exadata Infrastructure.

Parameters:

  • cloud_exadata_infrastructure_id (ResourceIdOrArn) –

    The unique identifier of the Cloud Exadata infrastructure for which to retrieve unallocated resources.

  • db_servers (Optional[StringList], default: None ) –

    The database servers to include in the unallocated resources query.

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 get_cloud_exadata_infrastructure_unallocated_resources(
    self,
    cloud_exadata_infrastructure_id: "capo_odb.types.resource_id_or_arn.ResourceIdOrArn",
    *,
    config_overrides: Optional[AsyncodbClientConfig] = None,
    db_servers: Optional["capo_odb.types.string_list.StringList"] = None,
) -> "capo_odb.types.get_cloud_exadata_infrastructure_unallocated_resources_output.GetCloudExadataInfrastructureUnallocatedResourcesOutput":
    """<p>Retrieves information about unallocated resources in a specified Cloud Exadata Infrastructure.</p>

    Args:
        cloud_exadata_infrastructure_id: <p>The unique identifier of the Cloud Exadata infrastructure for which to retrieve unallocated resources.</p>
        db_servers: <p>The database servers to include in the unallocated resources query.</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.get_cloud_exadata_infrastructure_unallocated_resources_input.GetCloudExadataInfrastructureUnallocatedResourcesInput]",
    ) -> AsyncOperationResponse[
        "capo_odb.types.get_cloud_exadata_infrastructure_unallocated_resources_output.GetCloudExadataInfrastructureUnallocatedResourcesOutput"
    ]:
        import capo_odb._operations.odb.get_cloud_exadata_infrastructure_unallocated_resources

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

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("GetCloudExadataInfrastructureUnallocatedResources"),
    )
    input_: capo_odb.types.get_cloud_exadata_infrastructure_unallocated_resources_input.GetCloudExadataInfrastructureUnallocatedResourcesInput = {
        "cloud_exadata_infrastructure_id": cloud_exadata_infrastructure_id
    }
    if db_servers is not None:
        input_["db_servers"] = db_servers

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