REST API - update

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"
    }
}

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.
500 resource_busy if the virtual machine is busy performing another operation.
500 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.