Skip to content

update_cloud_vm_cluster async

update_cloud_vm_cluster(
    cloud_vm_cluster_id: ResourceId,
    *,
    config_overrides: Optional[AsyncodbClientConfig] = None,
    cpu_core_count: Optional[int] = None,
    data_collection_options: Optional[DataCollectionOptions] = None,
    data_storage_size_in_t_bs: Optional[float] = None,
    db_node_storage_size_in_g_bs: Optional[int] = None,
    display_name: Optional[ResourceDisplayName] = None,
    ssh_public_keys: Optional[StringList] = None,
    license_model: Optional[LicenseModel] = None,
    memory_size_in_g_bs: Optional[int] = None,
    storage_size_in_g_bs: Optional[int] = None,
) -> UpdateCloudVmClusterOutput

Updates the properties of the specified VM cluster.

Parameters:

  • cloud_vm_cluster_id (ResourceId) –

    The unique identifier of the VM cluster to update.

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

    The number of CPU cores to enable on the VM cluster. If you don't specify a value, the existing number of CPU cores is retained.

  • data_collection_options (Optional[DataCollectionOptions], default: None ) –

    The set of preferences for the diagnostic collection options for the VM cluster.

  • data_storage_size_in_t_bs (Optional[float], default: None ) –

    The size of the data disk group, in terabytes (TB), to allocate for the VM cluster.

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

    The amount of local node storage, in gigabytes (GB), to allocate for the VM cluster.

  • display_name (Optional[ResourceDisplayName], default: None ) –

    A new user-friendly name for the VM cluster.

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

    The public key portion of one or more key pairs used for SSH access to the VM cluster.

  • license_model (Optional[LicenseModel], default: None ) –

    The Oracle license model to apply to the VM cluster.

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

    The amount of memory, in gigabytes (GB), to allocate for the VM cluster.

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

    The amount of local node storage, in gigabytes (GB), to allocate to the VM cluster.

Raises:

  • AccessDeniedException –

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

  • ConflictException –

    Occurs when a conflict with the current status of your resource. Fix any inconsistencies with your resource 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 update_cloud_vm_cluster(
    self,
    cloud_vm_cluster_id: "capo_odb.types.resource_id.ResourceId",
    *,
    config_overrides: Optional[AsyncodbClientConfig] = None,
    cpu_core_count: Optional[int] = None,
    data_collection_options: Optional[
        "capo_odb.types.data_collection_options.DataCollectionOptions"
    ] = None,
    data_storage_size_in_t_bs: Optional[float] = None,
    db_node_storage_size_in_g_bs: Optional[int] = None,
    display_name: Optional[
        "capo_odb.types.resource_display_name.ResourceDisplayName"
    ] = None,
    ssh_public_keys: Optional["capo_odb.types.string_list.StringList"] = None,
    license_model: Optional["capo_odb.types.license_model.LicenseModel"] = None,
    memory_size_in_g_bs: Optional[int] = None,
    storage_size_in_g_bs: Optional[int] = None,
) -> "capo_odb.types.update_cloud_vm_cluster_output.UpdateCloudVmClusterOutput":
    """<p>Updates the properties of the specified VM cluster.</p>

    Args:
        cloud_vm_cluster_id: <p>The unique identifier of the VM cluster to update.</p>
        cpu_core_count: <p>The number of CPU cores to enable on the VM cluster. If you don't specify a value, the existing number of CPU cores is retained.</p>
        data_collection_options: <p>The set of preferences for the diagnostic collection options for the VM cluster.</p>
        data_storage_size_in_t_bs: <p>The size of the data disk group, in terabytes (TB), to allocate for the VM cluster.</p>
        db_node_storage_size_in_g_bs: <p>The amount of local node storage, in gigabytes (GB), to allocate for the VM cluster.</p>
        display_name: <p>A new user-friendly name for the VM cluster.</p>
        ssh_public_keys: <p>The public key portion of one or more key pairs used for SSH access to the VM cluster.</p>
        license_model: <p>The Oracle license model to apply to the VM cluster.</p>
        memory_size_in_g_bs: <p>The amount of memory, in gigabytes (GB), to allocate for the VM cluster.</p>
        storage_size_in_g_bs: <p>The amount of local node storage, in gigabytes (GB), to allocate to the VM cluster.</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.conflict_exception.ConflictException: <p>Occurs when a conflict with the current status of your resource. Fix any inconsistencies with your resource 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.update_cloud_vm_cluster_input.UpdateCloudVmClusterInput]",
    ) -> AsyncOperationResponse[
        "capo_odb.types.update_cloud_vm_cluster_output.UpdateCloudVmClusterOutput"
    ]:
        import capo_odb._operations.odb.update_cloud_vm_cluster

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateCloudVmCluster")
    )
    input_: capo_odb.types.update_cloud_vm_cluster_input.UpdateCloudVmClusterInput = {
        "cloud_vm_cluster_id": cloud_vm_cluster_id
    }
    if cpu_core_count is not None:
        input_["cpu_core_count"] = cpu_core_count
    if data_collection_options is not None:
        input_["data_collection_options"] = data_collection_options
    if data_storage_size_in_t_bs is not None:
        input_["data_storage_size_in_t_bs"] = data_storage_size_in_t_bs
    if db_node_storage_size_in_g_bs is not None:
        input_["db_node_storage_size_in_g_bs"] = db_node_storage_size_in_g_bs
    if display_name is not None:
        input_["display_name"] = display_name
    if ssh_public_keys is not None:
        input_["ssh_public_keys"] = ssh_public_keys
    if license_model is not None:
        input_["license_model"] = license_model
    if memory_size_in_g_bs is not None:
        input_["memory_size_in_g_bs"] = memory_size_in_g_bs
    if storage_size_in_g_bs is not None:
        input_["storage_size_in_g_bs"] = storage_size_in_g_bs

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