Skip to content

Commit

Permalink
Zowe Suite v2.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zowe-robot authored Oct 4, 2022
2 parents 412c04b + 6975c82 commit 4589455
Showing 1 changed file with 155 additions and 1 deletion.
156 changes: 155 additions & 1 deletion plugins/zlux-agent/doc/swagger/fileapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -169,14 +169,168 @@ paths:
consumes:
- application/json
produces:
- text/json
- application/json
responses:
'200':
description: successful operation
schema:
type: string
'404':
description: File could not be opened or does not exist
put:
summary: Creates a dataset
tags:
- Dataset
parameters:
- name: dataset
in: path
description: Cache results for future
required: true
type: string
- name: body
in: body
required: true
schema:
type: object
properties:
dsorg:
type: string
enum: [PS, PO]
blksz:
type: number
lrecl:
description: Desired record length
type: number
volser:
type: string
recfm:
type: string
enum: [A, B, F, U, V]
blkln:
description: The average data block length
type: number
ndisp:
type: string
default: CATLG
enum: [KEEP, CATLG]
strcls:
description: Desired SMS storage class
type: string
mngcls:
description: Desired SMS management class
type: string
datacls:
description: Desired SMS data class
type: string
space:
type: string
enum: [CYL, TRK]
dir:
type: number
prime:
type: number
description: Desired primary space quantity
secnd:
type: number
description: Desired secondary space quantity
avgr:
type: string
description: Specifies which allocation unit to be used
enum: [M, K, U]
dsnt:
type: string
description: Specifies which data set type to create
enum: [PDSE, PDS, HFS, EXTREQ, EXTPPREF, BASIC, LARGE]
consumes:
- application/json
produces:
- text/plain
responses:
'200':
description: Successfully created dataset
schema:
type: string
'400':
description: Invalid JSON
schema:
type: string
examples:
No JSON:
Cannot update file without JSON formatted record request
Invalid JSON:
Invalid JSON request body
'500':
description: Internal Server Error
schema:
type: string
examples:
DD Allocation Error:
Unable to allocate a DD for ACB
Unalloc error:
"error: ds unalloc dsn={dataset} dd=ddname, rc=rc sysRC=rc, sysRSN=rsn"
delete:
summary: Delete a dataset or member
tags:
- Dataset
parameters:
- name: dataset
in: path
description: The dataset (and optionally member name) to be deleted
required: true
type: string
consumes:
- application/json
produces:
- application/json
- text/plain
responses:
'200':
description: OK
schema:
type: object
properties:
msg:
type: string
examples:
Member deletion:
{msg: Data set member membername was deleted successfully}
Dataset deletion:
{msg: Data set dataset was deleted successfully}
'400':
description: VSAM dataset detected. Please use regular dataset route
schema:
type: string
'401':
description: Dataset {dataset} busy (%s)
schema:
type: string
'404':
description: Not found
schema:
type: string
examples:
Dataset not found:
Dataset or member does not exist {dataset}
Member not found:
Data set member does not exist
Device not available:
Device not available for dataset {dataset}
Catalog not available:
Catalog not available for dataset {dataset}
'500':
description: Internal Server Error
schema:
type: string
examples:
Dataset could not be opened:
Dataset could not be opened
Could not allocate member name:
Could not allocate member name
Member could not be deleted:
Member membername could not be deleted
DYNALLOC failure:
DYNALLOC failed with RC = rc, DYN RC = rc, RSN = rsn, dsn={dataset}, (site)

'/VSAMdatasetContents/{dataset}':
get:
summary: Get a VSAM dataset
Expand Down

0 comments on commit 4589455

Please sign in to comment.