vcenter vm hardware adapter scsi: update

Updates the configuration of a virtual SCSI adapter.

Request:

HTTP request

PATCH https://{server}/rest/vcenter/vm/{vm}/hardware/adapter/scsi/{adapter}

Path Parameters

Name Type Description
Required
vm string Virtual machine identifier.
adapter string Virtual SCSI adapter identifier.

Request Body Structure:

{
    "spec"{
        "sharing""NONE"
    }
}
<?xml version="1.0" ?>
<ns0:Update-Input xmlns:ns0="http://vmware.com/vcenter/vm/hardware/adapter/scsi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <spec>
    <sharing>NONE</sharing>
  </spec>
</ns0:Update-Input>

Request Body Parameters:

Name Type Description
bold = required
spec update_spec Specification for updating the virtual SCSI adapter.
spec.sharing string Bus sharing mode.

This field may only be modified if the virtual machine is not powered on.

Optional. If unset, the value is unchanged.

Response:

HTTP Status Code: 200

None

Errors:

HTTP Status Code Type Description
500 error if the system reports an error while responding to the request.
404 not_found if the virtual machine or virtual SCSI adapter is not found.
400 not_allowed_in_current_state if one or more of the fields specified in the spec parameter cannot be modified due to the current power state of the virtual machine or the connection state of the virtual SCSI adapter.
400 resource_busy if the virtual machine is busy performing another operation.
400 resource_inaccessible if the virtual machine's configuration state cannot be accessed.
503 service_unavailable if the system is unable to communicate with a service to complete the request.
401 unauthenticated if the user can not be authenticated.
403 unauthorized if the user doesn't have the required privileges.