User Tools

Site Tools


owncloud

OwnCloud - always good to know

Due to changes in OC (seems like something posix related) it was required to install php-process and adjust the cronJob to run cron.php as the user ownclouds webspace runs:

*/1  *  *  *  * su -s /bin/bash WEBUSER -c "php -f /var/www/your.domain.tld/web/cron.php"

OwnCloud API URL Examples

Capabilities

URL

/ocs/v1.php/cloud/capabilities?format=json

EXAMPLE OUTPUT

{
  "ocs": {
    "meta": {
      "status": "ok",
      "statuscode": 100,
      "message": null
    },
    "data": {
      "capabilities": {
        "files": {
          "versioning": true,
          "bigfilechunking": true,
          "undelete": true
        },
        "core": {
          "pollinterval": 60
        }
      },
      "version": {
        "major": 6,
        "minor": 0,
        "micro": 0,
        "string": "6.0.1",
        "edition": ""
      }
    }
  }
}

Users usage

URL

/ocs/v1.php/cloud/users/<USERNAME>?format=json

EXAMPLE OUTPUT

{
  "ocs": {
    "meta": {
      "status": "ok",
      "statuscode": 100,
      "message": null
    },
    "data": {
      "quota": {
        "free": 19296813056,
        "used": 1091243353,
        "total": 20388056409,
        "relative": 5.35
      }
    }
  }
}

Current user info

URL

/ocs/v1.php/cloud/user?format=json

EXAMPLE OUTPUT

{
  "ocs": {
    "meta": {
      "status": "ok",
      "statuscode": 100,
      "message": null
    },
    "data": {
      "id": "admin",
      "display-name": "admin",
      "email": "rothjochen@gmail.com"
    }
  }
}

#######

URL

/ocs/v1.php/cloud/users/<USERNAME>?format=json

EXAMPLE OUTPUT

 

#######

URL

/ocs/v1.php/cloud/users/<USERNAME>?format=json

EXAMPLE OUTPUT

 

#######

URL

/ocs/v1.php/cloud/users/<USERNAME>?format=json

EXAMPLE OUTPUT

 

#######

URL

/ocs/v1.php/cloud/users/<USERNAME>?format=json

EXAMPLE OUTPUT

 
owncloud.txt · Last modified: 2015/11/15 20:20 by admin