Extend Resources API to include the amount of storage used in the site.

Description

By default, the migration tool allocates new Canvas sites with a quota of 5.2GB. This works for most IU and Michigan sites, but we have made exceptions for specific instructors. Instructure would like to know the spaced required before initiating the download so they can adjust the quota on the target site if necessary.

Sample JSON:

"entityPrefix": "content", "content_collection": [
{
"author": "Oncourse Administrator",
"container": "\/content\/group\/",
"copyrightAlert": null,
"copyrightStatus": null,
"description": null,
"endDate": null,
"fromDate": null,
"modifiedDate": "20140527133233829",
"numChildren": 52,
"quota": "4194304",
"size": 143,
"title": "Mapping 1: Points",
"type": "collection",
"url": "https:\/\/regression.oncourse.iu.edu\/access\/content\/group\/SU14-IN-UITS-PRAC-64193\/",
"usage": "195612672",
"hidden": false,
"entityReference": "\/content",
"entityURL": "https:\/\/regression.oncourse.iu.edu\/direct\/content",
"entityTitle": "Mapping 1: Points"
},...

Attachments

1
  • 10 Apr 2015, 02:58 PM

Activity

Beth Kirschner May 15, 2015 at 7:51 AM

Revised patch based on PR comments, verified and merged to master

Ying Wang April 10, 2015 at 2:58 PM

Attached the patch "resource_quota_usage_patch.txt"

Ying Wang April 10, 2015 at 2:57 PM

After discussed with Mysti and Oxana, we decide to add resource quota and usage in API. Here is the patch to add both values in. Please review.

Fixed

Details

Priority

Affects versions

Fix versions

Assignee

Reporter

Created March 15, 2015 at 5:46 PM
Updated May 24, 2015 at 6:34 AM
Resolved May 15, 2015 at 7:51 AM

Flag notifications