Skip to content

Instantly share code, notes, and snippets.

@davenice
Last active October 30, 2025 22:59
Show Gist options
  • Select an option

  • Save davenice/0cd4623ea3386ab522eac0999b8f7aaa to your computer and use it in GitHub Desktop.

Select an option

Save davenice/0cd4623ea3386ab522eac0999b8f7aaa to your computer and use it in GitHub Desktop.
Sample Zowe V3 config file that includes nested profiles for two separate hosts
{
"$schema": "./zowe.schema.json",
"profiles": {
// parent profile for host1.example.com
"host1": {
// common properties for host1
"properties": {
"host": "host1.example.com",
"rejectUnauthorized": false
},
// list of attributes whose values should be in OS secure storage
"secure": ["user", "password"],
// profiles for each mainframe service on host1
"profiles": {
"zosmf": {
"type": "zosmf",
"properties": {
"port": 32070,
"protocol": "https"
}
},
"ssh": {
"type": "ssh",
"properties": {
"port": 22
}
},
"rse": {
"type": "rse",
"properties": {
"port": 6800,
"basePath": "rseapi",
"protocol": "https"
}
},
"cicsplex1": {
"type": "cics",
"properties": {
"protocol": "http",
"port": 12345
}
},
"cicsplex2": {
"type": "cics",
"properties": {
"protocol": "https",
"port": 12346
}
}
}
},
// parent profile for host2.example.com
"host2": {
"properties": {
"host": "host2.example.com",
"rejectUnauthorized": false
},
"secure": ["user", "password"],
"profiles": {
"zosmf": {
"type": "zosmf",
"properties": {
"port": 32070,
"protocol": "https"
}
},
"cicsplex3": {
"type": "cics",
"properties": {
"protocol": "https",
"port": 12347
}
}
}
},
"defaults": {
"zosmf": "host1.zosmf",
"ssh": "host1.ssh",
"rse": "host1.rse",
"cics": "host1.cicsplex1"
}
}
}
@davenice
Copy link
Author

This sample Zowe V3 config file includes profiles for two hosts, host1 and host2. These use the nested profile strategy to allow for keeping hostname and credentials common across connections to a particular host.

It uses autoStore and secure stanzas which should store user/password into the user’s secure storage.

The config file includes several CMCI / CICSplex connections.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment