code: def post(method, hmc, uri, uri_parms, body, logon_required,
               wait_for_completion):
          
          assert wait_for_completion is True  # async not supported yet
          cpc_oid = uri_parms[0]
          try:
              cpc = hmc.cpcs.lookup_by_oid(cpc_oid)
          except KeyError:
              raise InvalidResourceError(method, uri)
          if not cpc.dpm_enabled:
              raise CpcNotInDpmError(method, uri, cpc)
          check_valid_cpc_status(method, uri, cpc)
          check_required_fields(method, uri, body,
                                ['name', 'initial-memory', 'maximum-memory'])
          # TODO: There are some more input properties that are required under
          # certain conditions.
  
          # Reflect the result of creating the partition
          new_partition = cpc.partitions.add(body)
          return {'object-uri': new_partition.uri}
docs: Operation: Create Partition (requires DPM mode).