Lists all Autonomous VMs in an Autonomous VM cluster.
Parameters:
-
max_results
(Optional[int], default:
None
)
–
The maximum number of items to return per page.
-
next_token
(Optional[str], default:
None
)
–
The pagination token to continue listing from.
-
cloud_autonomous_vm_cluster_id
(ResourceId)
–
The unique identifier of the Autonomous VM cluster whose virtual machines you're listing.
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/odb.py
| def list_autonomous_virtual_machines(
self,
cloud_autonomous_vm_cluster_id: "capo_odb.types.resource_id.ResourceId",
*,
config_overrides: Optional[odbClientConfig] = None,
max_results: Optional[int] = None,
next_token: Optional[str] = None,
) -> "capo_odb.types.list_autonomous_virtual_machines_output.ListAutonomousVirtualMachinesOutput":
"""<p>Lists all Autonomous VMs in an Autonomous VM cluster.</p>
Args:
max_results: <p>The maximum number of items to return per page.</p>
next_token: <p>The pagination token to continue listing from.</p>
cloud_autonomous_vm_cluster_id: <p>The unique identifier of the Autonomous VM cluster whose virtual machines you're listing.</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.
"""
def _handler(
req: "OperationRequest[capo_odb.types.list_autonomous_virtual_machines_input.ListAutonomousVirtualMachinesInput]",
) -> OperationResponse[
"capo_odb.types.list_autonomous_virtual_machines_output.ListAutonomousVirtualMachinesOutput"
]:
import capo_odb._operations.odb.list_autonomous_virtual_machines
output, http_response = (
capo_odb._operations.odb.list_autonomous_virtual_machines.list_autonomous_virtual_machines(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListAutonomousVirtualMachines")
)
input_: capo_odb.types.list_autonomous_virtual_machines_input.ListAutonomousVirtualMachinesInput = {
"cloud_autonomous_vm_cluster_id": cloud_autonomous_vm_cluster_id
}
if max_results is not None:
input_["max_results"] = max_results
if next_token is not None:
input_["next_token"] = next_token
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|