Skip to content

Create drive return zero quota size  #149

@amrita-shrestha

Description

@amrita-shrestha

While doing create drive API request we get some numeric value in quota->total. Using libre graph create drive return zero. So there is difference in response from api and libre graph library

curl -XPOST 'https://localhost:9200/graph/v1.0/drives' \
--data '{
  "name": "Venus"
}'

-------Response------------

{
    "driveAlias": "project/venus",
    "driveType": "project",
    "id": "bb740b6b-d7e7-4cd7-b7ed-c10b45c6f648$426a5fb6-a547-4a15-ba1e-326855c98298",
    "lastModifiedDateTime": "2023-12-01T12:25:49.425938453+05:45",
    "name": "Venus",
    "owner": {
        "user": {
            "displayName": "",
            "id": "426a5fb6-a547-4a15-ba1e-326855c98298"
        }
    },
    "quota": {
        "total": 1000000000
    },
    "root": {
        "eTag": "\"45440fdf2bc0aa8a7a2ab85048c6f3c4\"",
        "id": "bb740b6b-d7e7-4cd7-b7ed-c10b45c6f648$426a5fb6-a547-4a15-ba1e-326855c98298",
        "permissions": [
            {
                "grantedToIdentities": [
                    {
                        "user": {
                            "displayName": "Admin",
                            "id": "42283afb-2a06-4b47-b707-db649d1ba001"
                        }
                    }
                ],
                "roles": [
                    "manager"
                ]
            }
        ],
        "webDavUrl": "https://localhost:9200/dav/spaces/bb740b6b-d7e7-4cd7-b7ed-c10b45c6f648$426a5fb6-a547-4a15-ba1e-326855c98298"
    },
    "webUrl": "https://localhost:9200/f/bb740b6b-d7e7-4cd7-b7ed-c10b45c6f648$426a5fb6-a547-4a15-ba1e-326855c98298"
}

Using Libregraph

            [quota] => OpenAPI\Client\Model\Quota Object
                (
                    [openAPINullablesSetToNull:protected] => Array
                        (
                        )

                    [container:protected] => Array
                        (
                            [deleted] => 
                            [remaining] => 
                            [state] => 
                            [total] => 0
                            [used] => 
                        )

                )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions