Cns Volume Manager Cns Configure Volume AC Ls
Modify the ACL configurations for existing volumes.
Multiple requests configuring the same volume at the same time will be serialized in CNS.
Note that this API is currently supported for file volumes only.
Following privileges will be required on file volumes, to perform this operation:
- Host.Config.Storage on vSAN file service enabled vSAN cluster, required for file volume only
Faults that can be set in individual result entry, corresponding to each CnsVolumeACLConfigureSpec instance in input:
- vmodl.fault.InvalidArgument Set if the input spec has invlid field.
- vim.fault.NotFound Set in case of the volume can not be found.
- vim.fault.CnsFault Set in case of any other failure scenarios.
The unique identifier for the managed object to which the method attaches; the serialized managed object reference for a request has the form moType/moId
, in this case CnsVolumeManager/{moId}
.
The vSphere release schema. The current specification covers vSphere 9.0.0.0 APIs.
"CnsConfigureVolumeACLsRequestType Object"
Specifications for volumes ACL configuration.
Task to track the progress and overall state of this operation.
"MoRefTask Object"
InvalidArgument: Thrown if: 1) two or more ACLConfigSpec instances are passed; 2) the volume ID is empty; 3) file service reports the invalid inputs.
NotFound: Thrown if the volume or cluster can not be found by CNS.
CnsFault: Thrown for any other authorization failure scenrios.
"MethodFault Object"
Fault which is the cause of this fault.
Message which has details about the error Message can also contain a key to message catalog which can be used to generate better localized messages.
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/vsan/CnsVolumeManager/{moId}/CnsConfigureVolumeACLs