summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/rest/opengnsys-api.yml
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2017-10-13 08:24:59 +0000
committerramon <ramongomez@us.es>2017-10-13 08:24:59 +0000
commit72bbcf8591f01f284e8901b3683d4222b08312a1 (patch)
treee2b04413dee905f9a62a7767d29e9a948ca4edf1 /admin/WebConsole/rest/opengnsys-api.yml
parent8f34f3a8d39a0e8944d7295ec115b66b722eb755 (diff)
#810: Internacionalización de propiedades de repositorio; corrección al calcular porcentaje de uso y actualizar documentación de la API REST.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5458 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/WebConsole/rest/opengnsys-api.yml')
-rw-r--r--admin/WebConsole/rest/opengnsys-api.yml85
1 files changed, 61 insertions, 24 deletions
diff --git a/admin/WebConsole/rest/opengnsys-api.yml b/admin/WebConsole/rest/opengnsys-api.yml
index 9704ff5c..e37559d5 100644
--- a/admin/WebConsole/rest/opengnsys-api.yml
+++ b/admin/WebConsole/rest/opengnsys-api.yml
@@ -948,6 +948,28 @@ paths:
schema:
type: object
properties:
+ directory:
+ description: repository directory
+ type: string
+ images:
+ description: information about repository-global images
+ type: array
+ items:
+ $ref: "#/definitions/ImageModel"
+ ous:
+ description: OUs defined
+ type: array
+ items:
+ type: object
+ properties:
+ subdir:
+ description: OU subdirectory
+ type: string
+ images:
+ description: information about OU-based images
+ type: array
+ items:
+ $ref: "#/definitions/ImageModel"
disk:
description: repository disk information
type: object
@@ -965,30 +987,7 @@ paths:
description: percentage of used space
type: string
required: [ total, used, free, percent ]
- images:
- description: information about stored images
- type: object
- properties:
- file:
- description: image file information
- type: object
- properties:
- name:
- description: file name
- type: string
- size:
- description: file size (bytes)
- type: integer
- format: int64
- modified:
- description: file modification date
- type: string
- format: date-time
- permissions:
- description: file permissions
- type: string
- required: [ name, size, modified, permissions ]
- required: [ disk, images ]
+ required: [ directory, images, ous, disk ]
security:
- apikey: []
tags:
@@ -1191,3 +1190,41 @@ definitions:
minimum: 1
required: [ id ]
required: [ id, name, mac, ip, lab, ou ]
+ ImageModel:
+ type: object
+ properties:
+ name:
+ description: image name (file name without extension)
+ type: string
+ type:
+ description: image type (file extension or ''dir'' for directory image)
+ type: string
+ clientname:
+ description: source client name
+ type: string
+ clonator:
+ description: clonation program
+ type: string
+ compressor:
+ description: compression program
+ type: string
+ filesystem:
+ description: filesystem type
+ type: string
+ datasize:
+ description: data size (bytes)
+ type: integer
+ format: int64
+ size:
+ description: image size (bytes)
+ type: integer
+ format: int64
+ modified:
+ description: image modification date
+ type: string
+ format: date-time
+ mode:
+ description: image access permissions (four octal digits)
+ type: string
+ required: [ name, type, clientname, clonator, compressor, filesystem, datasize, size, modified, mode ]
+