Creates a new compute policy. if you do not have all of the privileges described as follows: - Operation execution requires ComputePolicy.Manage.
Required session ID, acquired from Create Session API under CIS product
Specification for the new policy to be created. The new policy will be an instance of the capability that has the creation type (see Capabilities.Info.create-spec-type) equal to the type of the specified value (see spec). The parameter must contain all the attributes defined in CreateSpec.
com.vmware.vapi.std.errors.already_exists : if a policy with the same name is already present on this vCenter server. | com.vmware.vapi.std.errors.invalid_argument : if a parameter passed in the spec is invalid.
com.vmware.vapi.std.errors.unauthorized : if the user doesn’t have the required privileges.
com.vmware.vapi.std.errors.unable_to_allocate_resource : if more than 100 policies are created.
‘Default’ means this response is used for all HTTP codes that are not covered individually for this operation.