Folder Create Folder
Creates a new sub-folder with the specified name.
The childType property of the new folder is the same as the childType property of the current folder.
Required privileges: Folder.Create
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 Folder/{moId}
.
The vSphere release schema. The current specification covers vSphere 8.0.2.0 APIs.
"CreateFolderRequestType Object"
The name to be given the new folder. An entity name must be a non-empty string of less than 80 characters. The slash (/), backslash (\) and percent (%) will be escaped using the URL syntax. For example, %2F. Any percent (%) character used in this parameter must be escaped, unless it is used to start an escape sequence. Clients may also escape any other characters in this parameter.
A reference to the new folder.
"MoRefFolder Object"
DuplicateName: if another object in the same folder has the target name.
InvalidName: if the name is not a valid entity name.
"VimFault Object"
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/Folder/{moId}/CreateFolder