# Module `netapp_ontap.resources.quota_report`

Copyright © 2020 NetApp Inc. All rights reserved.

## Overview

Quota reports provide the current file and space consumption for a user, group, or qtree in a FlexVol or a FlexGroup volume.

## Quota report APIs

The following APIs can be used to retrieve quota reports associated with a volume in ONTAP.

- GET /api/storage/quota/reports
- GET /api/storage/quota/reports/{volume_uuid}/{index}

## Examples

### Retrieving all the quota report records

This API is used to retrieve all the quota report records.
The following example shows how to retrieve quota report records for all FlexVol volumes and FlexGroup volumes.

    from netapp_ontap import HostConnection
    from netapp_ontap.resources import QuotaReport

    with HostConnection("<mgmt-ip>", username="admin", password="password", verify=False):
        print(list(QuotaReport.get_collection()))

Try it out

    [
        QuotaReport(
            {
                "_links": {
                    "self": {
                        "href": "/api/storage/quota/reports/314a328f-502d-11e9-8771-005056a7f717/0"
                    }
                },
                "volume": {
                    "_links": {
                        "self": {
                            "href": "/api/storage/volumes/314a328f-502d-11e9-8771-005056a7f717"
                        }
                    },
                    "uuid": "314a328f-502d-11e9-8771-005056a7f717",
                    "name": "fg",
                },
                "svm": {
                    "_links": {
                        "self": {
                            "href": "/api/svm/svms/b68f961b-4cee-11e9-930a-005056a7f717"
                        }
                    },
                    "uuid": "b68f961b-4cee-11e9-930a-005056a7f717",
                    "name": "svm1",
                },
                "index": 0,
            }
        ),
        QuotaReport(
            {
                "_links": {
                    "self": {
                        "href": "/api/storage/quota/reports/314a328f-502d-11e9-8771-005056a7f717/1152921504606846976"
                    }
                },
                "volume": {
                    "_links": {
                        "self": {
                            "href": "/api/storage/volumes/314a328f-502d-11e9-8771-005056a7f717"
                        }
                    },
                    "uuid": "314a328f-502d-11e9-8771-005056a7f717",
                    "name": "fg",
                },
                "svm": {
                    "_links": {
                        "self": {
                            "href": "/api/svm/svms/b68f961b-4cee-11e9-930a-005056a7f717"
                        }
                    },
                    "uuid": "b68f961b-4cee-11e9-930a-005056a7f717",
                    "name": "svm1",
                },
                "index": 1152921504606846976,
            }
        ),
        QuotaReport(
            {
                "_links": {
                    "self": {
                        "href": "/api/storage/quota/reports/314a328f-502d-11e9-8771-005056a7f717/3458764513820540928"
                    }
                },
                "volume": {
                    "_links": {
                        "self": {
                            "href": "/api/storage/volumes/314a328f-502d-11e9-8771-005056a7f717"
                        }
                    },
                    "uuid": "314a328f-502d-11e9-8771-005056a7f717",
                    "name": "fg",
                },
                "svm": {
                    "_links": {
                        "self": {
                            "href": "/api/svm/svms/b68f961b-4cee-11e9-930a-005056a7f717"
                        }
                    },
                    "uuid": "b68f961b-4cee-11e9-930a-005056a7f717",
                    "name": "svm1",
                },
                "index": 3458764513820540928,
            }
        ),
        QuotaReport(
            {
                "_links": {
                    "self": {
                        "href": "/api/storage/quota/reports/314a328f-502d-11e9-8771-005056a7f717/4611686018427387904"
                    }
                },
                "volume": {
                    "_links": {
                        "self": {
                            "href": "/api/storage/volumes/314a328f-502d-11e9-8771-005056a7f717"
                        }
                    },
                    "uuid": "314a328f-502d-11e9-8771-005056a7f717",
                    "name": "fg",
                },
                "svm": {
                    "_links": {
                        "self": {
                            "href": "/api/svm/svms/b68f961b-4cee-11e9-930a-005056a7f717"
                        }
                    },
                    "uuid": "b68f961b-4cee-11e9-930a-005056a7f717",
                    "name": "svm1",
                },
                "index": 4611686018427387904,
            }
        ),
        QuotaReport(
            {
                "_links": {
                    "self": {
                        "href": "/api/storage/quota/reports/314a328f-502d-11e9-8771-005056a7f717/5764607523034234880"
                    }
                },
                "volume": {
                    "_links": {
                        "self": {
                            "href": "/api/storage/volumes/314a328f-502d-11e9-8771-005056a7f717"
                        }
                    },
                    "uuid": "314a328f-502d-11e9-8771-005056a7f717",
                    "name": "fg",
                },
                "svm": {
                    "_links": {
                        "self": {
                            "href": "/api/svm/svms/b68f961b-4cee-11e9-930a-005056a7f717"
                        }
                    },
                    "uuid": "b68f961b-4cee-11e9-930a-005056a7f717",
                    "name": "svm1",
                },
                "index": 5764607523034234880,
            }
        ),
        QuotaReport(
            {
                "_links": {
                    "self": {
                        "href": "/api/storage/quota/reports/cb20da45-4f6b-11e9-9a71-005056a7f717/0"
                    }
                },
                "volume": {
                    "_links": {
                        "self": {
                            "href": "/api/storage/volumes/cb20da45-4f6b-11e9-9a71-005056a7f717"
                        }
                    },
                    "uuid": "cb20da45-4f6b-11e9-9a71-005056a7f717",
                    "name": "fv",
                },
                "svm": {
                    "_links": {
                        "self": {
                            "href": "/api/svm/svms/b68f961b-4cee-11e9-930a-005056a7f717"
                        }
                    },
                    "uuid": "b68f961b-4cee-11e9-930a-005056a7f717",
                    "name": "svm1",
                },
                "index": 0,
            }
        ),
        QuotaReport(
            {
                "_links": {
                    "self": {
                        "href": "/api/storage/quota/reports/cb20da45-4f6b-11e9-9a71-005056a7f717/281474976710656"
                    }
                },
                "volume": {
                    "_links": {
                        "self": {
                            "href": "/api/storage/volumes/cb20da45-4f6b-11e9-9a71-005056a7f717"
                        }
                    },
                    "uuid": "cb20da45-4f6b-11e9-9a71-005056a7f717",
                    "name": "fv",
                },
                "svm": {
                    "_links": {
                        "self": {
                            "href": "/api/svm/svms/b68f961b-4cee-11e9-930a-005056a7f717"
                        }
                    },
                    "uuid": "b68f961b-4cee-11e9-930a-005056a7f717",
                    "name": "svm1",
                },
                "index": 281474976710656,
            }
        ),
        QuotaReport(
            {
                "_links": {
                    "self": {
                        "href": "/api/storage/quota/reports/cb20da45-4f6b-11e9-9a71-005056a7f717/1152921504606846976"
                    }
                },
                "volume": {
                    "_links": {
                        "self": {
                            "href": "/api/storage/volumes/cb20da45-4f6b-11e9-9a71-005056a7f717"
                        }
                    },
                    "uuid": "cb20da45-4f6b-11e9-9a71-005056a7f717",
                    "name": "fv",
                },
                "svm": {
                    "_links": {
                        "self": {
                            "href": "/api/svm/svms/b68f961b-4cee-11e9-930a-005056a7f717"
                        }
                    },
                    "uuid": "b68f961b-4cee-11e9-930a-005056a7f717",
                    "name": "svm1",
                },
                "index": 1152921504606846976,
            }
        ),
        QuotaReport(
            {
                "_links": {
                    "self": {
                        "href": "/api/storage/quota/reports/cb20da45-4f6b-11e9-9a71-005056a7f717/1153202979583557632"
                    }
                },
                "volume": {
                    "_links": {
                        "self": {
                            "href": "/api/storage/volumes/cb20da45-4f6b-11e9-9a71-005056a7f717"
                        }
                    },
                    "uuid": "cb20da45-4f6b-11e9-9a71-005056a7f717",
                    "name": "fv",
                },
                "svm": {
                    "_links": {
                        "self": {
                            "href": "/api/svm/svms/b68f961b-4cee-11e9-930a-005056a7f717"
                        }
                    },
                    "uuid": "b68f961b-4cee-11e9-930a-005056a7f717",
                    "name": "svm1",
                },
                "index": 1153202979583557632,
            }
        ),
        QuotaReport(
            {
                "_links": {
                    "self": {
                        "href": "/api/storage/quota/reports/cb20da45-4f6b-11e9-9a71-005056a7f717/2305843013508661248"
                    }
                },
                "volume": {
                    "_links": {
                        "self": {
                            "href": "/api/storage/volumes/cb20da45-4f6b-11e9-9a71-005056a7f717"
                        }
                    },
                    "uuid": "cb20da45-4f6b-11e9-9a71-005056a7f717",
                    "name": "fv",
                },
                "svm": {
                    "_links": {
                        "self": {
                            "href": "/api/svm/svms/b68f961b-4cee-11e9-930a-005056a7f717"
                        }
                    },
                    "uuid": "b68f961b-4cee-11e9-930a-005056a7f717",
                    "name": "svm1",
                },
                "index": 2305843013508661248,
            }
        ),
        QuotaReport(
            {
                "_links": {
                    "self": {
                        "href": "/api/storage/quota/reports/cb20da45-4f6b-11e9-9a71-005056a7f717/3458764513820540928"
                    }
                },
                "volume": {
                    "_links": {
                        "self": {
                            "href": "/api/storage/volumes/cb20da45-4f6b-11e9-9a71-005056a7f717"
                        }
                    },
                    "uuid": "cb20da45-4f6b-11e9-9a71-005056a7f717",
                    "name": "fv",
                },
                "svm": {
                    "_links": {
                        "self": {
                            "href": "/api/svm/svms/b68f961b-4cee-11e9-930a-005056a7f717"
                        }
                    },
                    "uuid": "b68f961b-4cee-11e9-930a-005056a7f717",
                    "name": "svm1",
                },
                "index": 3458764513820540928,
            }
        ),
        QuotaReport(
            {
                "_links": {
                    "self": {
                        "href": "/api/storage/quota/reports/cb20da45-4f6b-11e9-9a71-005056a7f717/3459045988797251584"
                    }
                },
                "volume": {
                    "_links": {
                        "self": {
                            "href": "/api/storage/volumes/cb20da45-4f6b-11e9-9a71-005056a7f717"
                        }
                    },
                    "uuid": "cb20da45-4f6b-11e9-9a71-005056a7f717",
                    "name": "fv",
                },
                "svm": {
                    "_links": {
                        "self": {
                            "href": "/api/svm/svms/b68f961b-4cee-11e9-930a-005056a7f717"
                        }
                    },
                    "uuid": "b68f961b-4cee-11e9-930a-005056a7f717",
                    "name": "svm1",
                },
                "index": 3459045988797251584,
            }
        ),
        QuotaReport(
            {
                "_links": {
                    "self": {
                        "href": "/api/storage/quota/reports/cb20da45-4f6b-11e9-9a71-005056a7f717/4611686018427387904"
                    }
                },
                "volume": {
                    "_links": {
                        "self": {
                            "href": "/api/storage/volumes/cb20da45-4f6b-11e9-9a71-005056a7f717"
                        }
                    },
                    "uuid": "cb20da45-4f6b-11e9-9a71-005056a7f717",
                    "name": "fv",
                },
                "svm": {
                    "_links": {
                        "self": {
                            "href": "/api/svm/svms/b68f961b-4cee-11e9-930a-005056a7f717"
                        }
                    },
                    "uuid": "b68f961b-4cee-11e9-930a-005056a7f717",
                    "name": "svm1",
                },
                "index": 4611686018427387904,
            }
        ),
        QuotaReport(
            {
                "_links": {
                    "self": {
                        "href": "/api/storage/quota/reports/cb20da45-4f6b-11e9-9a71-005056a7f717/4611967493404098560"
                    }
                },
                "volume": {
                    "_links": {
                        "self": {
                            "href": "/api/storage/volumes/cb20da45-4f6b-11e9-9a71-005056a7f717"
                        }
                    },
                    "uuid": "cb20da45-4f6b-11e9-9a71-005056a7f717",
                    "name": "fv",
                },
                "svm": {
                    "_links": {
                        "self": {
                            "href": "/api/svm/svms/b68f961b-4cee-11e9-930a-005056a7f717"
                        }
                    },
                    "uuid": "b68f961b-4cee-11e9-930a-005056a7f717",
                    "name": "svm1",
                },
                "index": 4611967493404098560,
            }
        ),
        QuotaReport(
            {
                "_links": {
                    "self": {
                        "href": "/api/storage/quota/reports/cb20da45-4f6b-11e9-9a71-005056a7f717/5764607523034234880"
                    }
                },
                "volume": {
                    "_links": {
                        "self": {
                            "href": "/api/storage/volumes/cb20da45-4f6b-11e9-9a71-005056a7f717"
                        }
                    },
                    "uuid": "cb20da45-4f6b-11e9-9a71-005056a7f717",
                    "name": "fv",
                },
                "svm": {
                    "_links": {
                        "self": {
                            "href": "/api/svm/svms/b68f961b-4cee-11e9-930a-005056a7f717"
                        }
                    },
                    "uuid": "b68f961b-4cee-11e9-930a-005056a7f717",
                    "name": "svm1",
                },
                "index": 5764607523034234880,
            }
        ),
    ]

### Retrieving a specific quota report record

This API is used to retrieve a specific quota report record.
The following example shows how to retrieve a single quota report user record.

    from netapp_ontap import HostConnection
    from netapp_ontap.resources import QuotaReport

    with HostConnection("<mgmt-ip>", username="admin", password="password", verify=False):
        resource = QuotaReport(
            index=281474976710656, **{"volume.uuid": "cf480c37-2a6b-11e9-8513-005056a7657c"}
        )
        resource.get()
        print(resource)

Try it out

    QuotaReport(
        {
            "_links": {
                "self": {
                    "href": "/api/storage/quota/reports/cf480c37-2a6b-11e9-8513-005056a7657c/281474976710656"
                }
            },
            "files": {
                "soft_limit": 30,
                "used": {"hard_limit_percent": 28, "total": 11, "soft_limit_percent": 37},
                "hard_limit": 40,
            },
            "volume": {
                "_links": {
                    "self": {
                        "href": "/api/storage/volumes/cf480c37-2a6b-11e9-8513-005056a7657c"
                    }
                },
                "uuid": "cf480c37-2a6b-11e9-8513-005056a7657c",
                "name": "fv",
            },
            "users": [{"id": "300008", "name": "fred"}],
            "type": "user",
            "svm": {
                "_links": {
                    "self": {"href": "/api/svm/svms/5093e722-248e-11e9-96ee-005056a7657c"}
                },
                "uuid": "5093e722-248e-11e9-96ee-005056a7657c",
                "name": "svm1",
            },
            "space": {
                "soft_limit": 31457280,
                "used": {
                    "hard_limit_percent": 25,
                    "total": 10567680,
                    "soft_limit_percent": 34,
                },
                "hard_limit": 41943040,
            },
            "qtree": {
                "id": 1,
                "name": "qt1",
                "_links": {
                    "self": {
                        "href": "/api/storage/qtrees/cf480c37-2a6b-11e9-8513-005056a7657c/1"
                    }
                },
            },
            "index": 281474976710656,
        }
    )

### Retrieving a single quota report multi-user record

##

    from netapp_ontap import HostConnection
    from netapp_ontap.resources import QuotaReport

    with HostConnection("<mgmt-ip>", username="admin", password="password", verify=False):
        resource = QuotaReport(
            index=281474976710656, **{"volume.uuid": "cf480c37-2a6b-11e9-8513-005056a7657c"}
        )
        resource.get()
        print(resource)

Try it out

    QuotaReport(
        {
            "_links": {
                "self": {
                    "href": "/api/storage/quota/reports/cf480c37-2a6b-11e9-8513-005056a7657c/1153484454560268288"
                }
            },
            "files": {
                "soft_limit": 30,
                "used": {"hard_limit_percent": 28, "total": 11, "soft_limit_percent": 37},
                "hard_limit": 40,
            },
            "volume": {
                "_links": {
                    "self": {
                        "href": "/api/storage/volumes/cf480c37-2a6b-11e9-8513-005056a7657c"
                    }
                },
                "uuid": "cf480c37-2a6b-11e9-8513-005056a7657c",
                "name": "fv",
            },
            "users": [
                {"id": "300008", "name": "fred"},
                {"id": "300009", "name": "john"},
                {"id": "300010", "name": "smith"},
            ],
            "type": "user",
            "svm": {
                "_links": {
                    "self": {"href": "/api/svm/svms/5093e722-248e-11e9-96ee-005056a7657c"}
                },
                "uuid": "5093e722-248e-11e9-96ee-005056a7657c",
                "name": "svm1",
            },
            "space": {
                "soft_limit": 31457280,
                "used": {
                    "hard_limit_percent": 25,
                    "total": 10567680,
                    "soft_limit_percent": 34,
                },
                "hard_limit": 41943040,
            },
            "qtree": {
                "id": 1,
                "name": "qt1",
                "_links": {
                    "self": {
                        "href": "/api/storage/qtrees/cf480c37-2a6b-11e9-8513-005056a7657c/1"
                    }
                },
            },
            "index": 1153484454560268288,
        }
    )

### Retrieving a single quota report group record

##

    from netapp_ontap import HostConnection
    from netapp_ontap.resources import QuotaReport

    with HostConnection("<mgmt-ip>", username="admin", password="password", verify=False):
        resource = QuotaReport(
            index=3459045988797251584,
            **{"volume.uuid": "cf480c37-2a6b-11e9-8513-005056a7657c"}
        )
        resource.get()
        print(resource)

Try it out

    QuotaReport(
        {
            "_links": {
                "self": {
                    "href": "/api/storage/quota/reports/cf480c37-2a6b-11e9-8513-005056a7657c/3459045988797251584"
                }
            },
            "files": {
                "soft_limit": 30,
                "used": {"hard_limit_percent": 28, "total": 11, "soft_limit_percent": 37},
                "hard_limit": 40,
            },
            "volume": {
                "_links": {
                    "self": {
                        "href": "/api/storage/volumes/cf480c37-2a6b-11e9-8513-005056a7657c"
                    }
                },
                "uuid": "cf480c37-2a6b-11e9-8513-005056a7657c",
                "name": "fv",
            },
            "type": "group",
            "group": {"id": "500009", "name": "test_group"},
            "svm": {
                "_links": {
                    "self": {"href": "/api/svm/svms/5093e722-248e-11e9-96ee-005056a7657c"}
                },
                "uuid": "5093e722-248e-11e9-96ee-005056a7657c",
                "name": "svm1",
            },
            "space": {
                "soft_limit": 31457280,
                "used": {
                    "hard_limit_percent": 25,
                    "total": 10567680,
                    "soft_limit_percent": 34,
                },
                "hard_limit": 41943040,
            },
            "qtree": {
                "id": 1,
                "name": "qt1",
                "_links": {
                    "self": {
                        "href": "/api/storage/qtrees/cf480c37-2a6b-11e9-8513-005056a7657c/1"
                    }
                },
            },
            "index": 3459045988797251584,
        }
    )

### Retrieving a single quota report tree record

##

    from netapp_ontap import HostConnection
    from netapp_ontap.resources import QuotaReport

    with HostConnection("<mgmt-ip>", username="admin", password="password", verify=False):
        resource = QuotaReport(
            index=4612248968380809216,
            **{"volume.uuid": "cf480c37-2a6b-11e9-8513-005056a7657c"}
        )
        resource.get()
        print(resource)

Try it out

    QuotaReport(
        {
            "_links": {
                "self": {
                    "href": "/api/storage/quota/reports/cf480c37-2a6b-11e9-8513-005056a7657c/4612248968380809216"
                }
            },
            "files": {
                "soft_limit": 30,
                "used": {"hard_limit_percent": 28, "total": 11, "soft_limit_percent": 37},
                "hard_limit": 40,
            },
            "volume": {
                "_links": {
                    "self": {
                        "href": "/api/storage/volumes/cf480c37-2a6b-11e9-8513-005056a7657c"
                    }
                },
                "uuid": "cf480c37-2a6b-11e9-8513-005056a7657c",
                "name": "fv",
            },
            "type": "tree",
            "svm": {
                "_links": {
                    "self": {"href": "/api/svm/svms/5093e722-248e-11e9-96ee-005056a7657c"}
                },
                "uuid": "5093e722-248e-11e9-96ee-005056a7657c",
                "name": "svm1",
            },
            "space": {
                "soft_limit": 31457280,
                "used": {
                    "hard_limit_percent": 25,
                    "total": 10567680,
                    "soft_limit_percent": 34,
                },
                "hard_limit": 41943040,
            },
            "qtree": {
                "id": 1,
                "name": "qt1",
                "_links": {
                    "self": {
                        "href": "/api/storage/qtrees/cf480c37-2a6b-11e9-8513-005056a7657c/1"
                    }
                },
            },
            "index": 4612248968380809216,
        }
    )

### Retrieving only records enforced by non-default rules

##

    from netapp_ontap import HostConnection
    from netapp_ontap.resources import QuotaReport

    with HostConnection("<mgmt-ip>", username="admin", password="password", verify=False):
        print(list(QuotaReport.get_collection(show_default_records=False)))

Try it out

    [
        QuotaReport(
            {
                "_links": {
                    "self": {
                        "href": "/api/storage/quota/reports/cf480c37-2a6b-11e9-8513-005056a7657c/4612248968380809216"
                    }
                },
                "files": {
                    "soft_limit": 30,
                    "used": {
                        "hard_limit_percent": 28,
                        "total": 11,
                        "soft_limit_percent": 37,
                    },
                    "hard_limit": 40,
                },
                "volume": {
                    "_links": {
                        "self": {
                            "href": "/api/storage/volumes/cf480c37-2a6b-11e9-8513-005056a7657c"
                        }
                    },
                    "uuid": "cf480c37-2a6b-11e9-8513-005056a7657c",
                    "name": "fv",
                },
                "type": "tree",
                "svm": {
                    "_links": {
                        "self": {
                            "href": "/api/svm/svms/5093e722-248e-11e9-96ee-005056a7657c"
                        }
                    },
                    "uuid": "5093e722-248e-11e9-96ee-005056a7657c",
                    "name": "svm1",
                },
                "space": {
                    "soft_limit": 31457280,
                    "used": {
                        "hard_limit_percent": 25,
                        "total": 10567680,
                        "soft_limit_percent": 34,
                    },
                    "hard_limit": 41943040,
                },
                "qtree": {
                    "id": 1,
                    "name": "qt1",
                    "_links": {
                        "self": {
                            "href": "/api/storage/qtrees/cf480c37-2a6b-11e9-8513-005056a7657c/1"
                        }
                    },
                },
                "index": 4612248968380809216,
            }
        ),
        QuotaReport(
            {
                "_links": {
                    "self": {
                        "href": "/api/storage/quota/reports/cf480c37-2a6b-11e9-8513-005056a7657c/1153484454560268288"
                    }
                },
                "files": {
                    "soft_limit": 30,
                    "used": {
                        "hard_limit_percent": 28,
                        "total": 11,
                        "soft_limit_percent": 37,
                    },
                    "hard_limit": 40,
                },
                "volume": {
                    "_links": {
                        "self": {
                            "href": "/api/storage/volumes/cf480c37-2a6b-11e9-8513-005056a7657c"
                        }
                    },
                    "uuid": "cf480c37-2a6b-11e9-8513-005056a7657c",
                    "name": "fv",
                },
                "users": [
                    {"id": "300008", "name": "fred"},
                    {"id": "300009", "name": "john"},
                    {"id": "300010", "name": "smith"},
                ],
                "type": "user",
                "svm": {
                    "_links": {
                        "self": {
                            "href": "/api/svm/svms/5093e722-248e-11e9-96ee-005056a7657c"
                        }
                    },
                    "uuid": "5093e722-248e-11e9-96ee-005056a7657c",
                    "name": "svm1",
                },
                "space": {
                    "soft_limit": 31457280,
                    "used": {
                        "hard_limit_percent": 25,
                        "total": 10567680,
                        "soft_limit_percent": 34,
                    },
                    "hard_limit": 41943040,
                },
                "qtree": {
                    "id": 1,
                    "name": "qt1",
                    "_links": {
                        "self": {
                            "href": "/api/storage/qtrees/cf480c37-2a6b-11e9-8513-005056a7657c/1"
                        }
                    },
                },
                "index": 1153484454560268288,
            }
        ),
    ]

## Classes

`class QuotaReport (*args, **kwargs)`

  Allows interaction with QuotaReport objects on the host

  Initialize the instance of the resource.

  Any keyword arguments are set on the instance as properties. For example, if the class was named 'MyResource', then this statement would be true:

      MyResource(name='foo').name == 'foo'

  ## Args

  `*args`
    Each positional argument represents a parent key as used in the URL of the object. That is, each value will be used to fill in a segment of the URL which refers to some parent object. The order of these arguments must match the order they are specified in the URL, from left to right.
  `**kwargs`
    each entry will have its key set as an attribute name on the instance and its value will be the value of that attribute.

  ### Ancestors

  - Resource

  ### Static methods

  `def count_collection(*args, connection: HostConnection = None, **kwargs) -> int`

    Retrieves the quota report records for all FlexVol volumes and FlexGroup volumes.

    ### Related ONTAP commands

    - `quota report`

    ### Learn more

    - `DOC /storage/quota/reports`

    Fetch a count of all objects of this type from the host.

    This calls GET on the object to determine the number of records. It is more efficient than calling get_collection() because it will not construct any objects. Query parameters can be passed in as kwargs to determine a count of objects that match some filtered criteria.

    ## Args

    `*args`
      Each entry represents a parent key which is used to build the path to the child object. If the URL definition were /api/foos/{foo.name}/bars, then to get the count of bars for a particular foo, the foo.name value should be passed.
    `connection`
      The `HostConnection` object to use for this API call. If unset, tries to use the connection which is set globally for the library or from the current context.
    `**kwargs`
      Any key/value pairs passed will be sent as query parameters to the host. These query parameters can affect the count. A return_records query param will be ignored.

    ## Returns

    On success, returns an integer count of the objects of this type. On failure, returns -1.

    ## Raises

    `NetAppRestError`: If the API call returned a status code >= 400, or if there is no connection available to use either passed in or on the library.

  `def find(*args, connection: HostConnection = None, **kwargs) -> Resource`

    Retrieves the quota report records for all FlexVol volumes and FlexGroup volumes.

    ### Related ONTAP commands

    - `quota report`

    ### Learn more

    - `DOC /storage/quota/reports`

    Find an instance of an object on the host given a query.

    The host will be queried with the provided key/value pairs to find a matching resource. If 0 are found, None will be returned. If more than 1 is found, an error will be raised or returned. If there is exactly 1 matching record, then it will be returned.

    ## Args

    `*args`
      Each entry represents a parent key which is used to build the path to the child object. If the URL definition were /api/foos/{foo.name}/bars, then to find a bar for a particular foo, the foo.name value should be passed.
    `connection`
      The `HostConnection` object to use for this API call. If unset, tries to use the connection which is set globally for the library or from the current context.
    `**kwargs`
      Any key/value pairs passed will be sent as query parameters to the host.

    ## Returns

    A `Resource` object containing the details of the object or None if no matches were found.

    ## Raises

    `NetAppRestError`: If the API call returned more than 1 matching resource.

  `def get_collection(*args, connection: HostConnection = None, max_records: int = None, **kwargs) -> typing.Iterable`

    Retrieves the quota report records for all FlexVol volumes and FlexGroup volumes.

    ### Related ONTAP commands

    - `quota report`

    ### Learn more

    - `DOC /storage/quota/reports`

    Fetch a list of all objects of this type from the host.

    This is a lazy fetch, making API calls only as necessary when the result of this call is iterated over. For instance, if max_records is set to 5, then iterating over the collection causes an API call to be sent to the server once for every 5 records. If the client stops iterating before getting to the 6th record, then no additional API calls are made.

    ## Args

    `*args`
      Each entry represents a parent key which is used to build the path to the child object. If the URL definition were /api/foos/{foo.name}/bars, then to get the collection of bars for a particular foo, the foo.name value should be passed.
    `connection`
      The `HostConnection` object to use for this API call. If unset, tries to use the connection which is set globally for the library or from the current context.
    `max_records`
      The maximum number of records to return per call
    `**kwargs`
      Any key/value pairs passed will be sent as query parameters to the host.

    ## Returns

    A list of `Resource` objects

    ## Raises

    `NetAppRestError`: If there is no connection available to use either passed in or on the library. This would be not be raised when get_collection() is called, but rather when the result is iterated.

  ### Methods

  `def get(self, **kwargs) -> NetAppResponse`

    Retrieves a specific quota report record.

    ### Related ONTAP commands

    - `quota report`

    ### Learn more

    - `DOC /storage/quota/reports`

    Fetch the details of the object from the host.

    Requires the keys to be set (if any). After returning, new or changed properties from the host will be set on the instance.

    ## Returns

    A `NetAppResponse` object containing the details of the HTTP response.

    ## Raises

    `NetAppRestError`: If the API call returned a status code >= 400

  `def quota_report_show(index: cliche.arg_types.choices.Choices.define.._Choices = None, specifier: cliche.arg_types.choices.Choices.define.._Choices = None, type: cliche.arg_types.choices.Choices.define.._Choices = None, fields: typing.List = None) -> netapp_ontap.resource_table.ResourceTable`

    Fetch a list of QuotaReport resources

    ## Args

    `index`
      Index that identifies a unique quota record. Valid in URL.
    `specifier`
      Quota specifier
    `type`
      Quota type associated with the quota record.

  ### Inherited members

  - `Resource`:
    - `from_dict`
    - `get_collection_url`
    - `get_connection`
    - `instance_location`
    - `path_keys`
    - `poll`
    - `set_connection`
    - `to_dict`
`class QuotaReportSchema (*, only: typing.Union = None, exclude: typing.Union = (), many: bool = False, context: typing.Dict = None, load_only: typing.Union = (), dump_only: typing.Union = (), partial: typing.Union = False, unknown: str = None)`

  The fields of the QuotaReport object

  ### Ancestors

  - netapp_ontap.resource.ResourceSchema
  - marshmallow.schema.Schema
  - marshmallow.base.SchemaABC

  ### Class variables

  `files GET POST PATCH`

    The files field of the quota_report.

  `group GET POST PATCH`

    The group field of the quota_report.

  `index GET`

    Index that identifies a unique quota record. Valid in URL.

  `links GET`

    The links field of the quota_report.

  `qtree GET POST PATCH`

    The qtree field of the quota_report.

  `space GET POST PATCH`

    The space field of the quota_report.

  `specifier GET`

    Quota specifier

  `svm GET POST PATCH`

    The svm field of the quota_report.

  `type GET`

    Quota type associated with the quota record.

    Valid choices:

    - tree
    - user
    - group
  `users GET POST PATCH`

    This parameter specifies the target user or users associated with the given quota report record. This parameter is available for user quota records and is not available for group or tree quota records. The target user or users are identified by a user name and user identifier. The user name can be a UNIX user name or a Windows user name, and the identifer can be a UNIX user identifier or a Windows security identifier.

  `volume GET POST PATCH`

    The volume field of the quota_report.