Files¶
- class zos_files.zowe.zos_files_for_zowe_sdk.Files(connection)¶
Class used to represent the base z/OSMF Files API.
…
- connection¶
connection object
- download_dsn(dataset_name, output_file)¶
Retrieve the contents of a dataset and saves it to a given file.
- get_dsn_content(dataset_name)¶
Retrieve the contents of a given dataset.
- Returns
A JSON with the contents of a given dataset
- Return type
json
- list_dsn(name_pattern)¶
Retrieve a list of datasets based on a given pattern.
- Returns
A JSON with a list of dataset names matching the given pattern
- Return type
json
- list_dsn_members(dataset_name)¶
Retrieve the list of members on a given PDS/PDSE.
- Returns
A JSON with a list of members from a given PDS/PDSE
- Return type
json
- upload_file_to_dsn(input_file, dataset_name)¶
Upload contents of a given file and uploads it to a dataset.
- write_to_dsn(dataset_name, data)¶
Write content to an existing dataset.
- Returns
A JSON containing the result of the operation
- Return type
json