Resource usage api method.