List the domains
Use this operation to list the domains that are defined for IBM Cloud Provisioning and Management for z/OS.
HTTP method and URI path
GET /zosmf/resource-mgmt/rest/<version>/domains/
- <version>
- Is the URI path variable that identifies the version of the z/OSMF software services template service. The following value is valid: 1.0.
Query parameters
None.
Description
This operation lists the domains for cloud provisioning.
On successful completion, HTTP status code 200 (OK) is returned, and a response body is returned. See Response content.
Request content
None.
Authorization requirements
The user must be a landlord, domain administrator, or consumer in the domain.
For more information, see Resource management services.
HTTP status codes
On successful completion, HTTP status code 200 (OK) is returned.
Otherwise, the following HTTP status codes are returned for the indicated errors. The response body is a standard error response body that provides the reason code that is indicated and associated error message.
HTTP error status code | Description |
---|---|
HTTP 400 Bad request | The request contains incorrect parameters. |
HTTP 404 Not found | The requested domain does not exist. |
HTTP 500 Internal server error | The server encountered an error. See the response body for a JSON object with information about the error. |
Response content
On successful completion, the service returns a response body, which contains a JSON object with details about the domains. See Table 2.
Field | Type | Description |
---|---|---|
domain-list | Array | Domains. See Table 3. |
domain-administrator-list | Array | User IDs for the domain administrators. |
network-administrator-list | Array | User IDs for the network administrators. |
wlm-administrator-list | Array | User IDs for the WLM administrators. |
security-administrator | Array | User IDs for the security administrators. |
security-job-statement | String | JOB statement JCL used in security jobs for the domain. |
domain-approver-list | Array | User IDs for the domain approvers. |
object-uri | String | URI of the newly created object. |
domain-description | String | Description of the domain. |
Field | Type | Description |
---|---|---|
domain-id | String | The generated ID for the domain. |
domain-name | String | Descriptive name for the domain. |
domain-system-list | Array | Systems in the domain. See Table 4. |
Field | Type | Description |
---|---|---|
sysplex-name | String | Name of the sysplex. The name is the value specified for the SYSPLEX parameter of the cross-system coupling facility (XCF) couple data set format utility. |
sysplex-node-name | String | Sysplex node name. |
system-nickname | String | Unique name that is assigned to the system definition. |
Example HTTP interaction
GET https://localhost:4444/zosmf/resource-mgmt/rest/1.0/domains/
The following is the response body for the example list domains request.
{
"domain-list": [{
"domain-id": "izu$0",
"domain-name": "default",
"domain-system-list": [{
"sysplex-name": "DUMBPLEX",
"sysplex-node-name": "DUMBNODE",
"system-nickname": "DUMBNODE_001"},
...
],
"domain-administrator-list": ["ZOSMFT1", ... ],
"network-administrator-list": ["ZOSMFT1", ... ],
"wlm-administrator-list": ["ZOSMFT1", ... ],
"security-administrator":"ZOSMFT1",
"security-job-statement" : "//JOBCARD JOB(acct-info)",
"domain-approver-list": ["ZOSMFT1", ... ],
"object-uri": "/zosmf/resource-mgmt/rest/1.0/domains/izu$0",
"domain-description": "default domain"
},
...
]
}