{
  "api_version": 1.6,
  "data": [
    {
      "allowed_gear_sizes": [
        "small"
      ],
      "available_gears": 0,
      "creation_time": "2014-04-30T03:58:40Z",
      "id": "536074f0194e4cdfd100000b",
      "links": {
        "GET": {
          "href": "https://openshift.redhat.com/broker/rest/domain/mydomain",
          "method": "GET",
          "optional_params": [

          ],
          "rel": "Get domain",
          "required_params": [

          ]
        },
        "ADD_APPLICATION": {
          "href": "https://openshift.redhat.com/broker/rest/domain/mydomain/applications",
          "method": "POST",
          "optional_params": [
            {
              "default_value": null,
              "description": "Array of one or more cartridge names",
              "name": "cartridges",
              "type": "array",
              "valid_options": [

              ]
            },
            {
              "default_value": false,
              "description": "Mark application as scalable",
              "name": "scale",
              "type": "boolean",
              "valid_options": [
                true,
                false
              ]
            },
            {
              "default_value": "small",
              "description": "The size of the gear",
              "name": "gear_size",
              "type": "string",
              "valid_options": [
                "small"
              ]
            },
            {
              "default_value": null,
              "description": "A URL to a Git source code repository that will be the basis for this application.",
              "name": "initial_git_url",
              "type": "string",
              "valid_options": [
                "",
                "empty"
              ]
            },
            {
              "default_value": null,
              "description": "Name of a cartridge.",
              "name": "cartridges[][name]",
              "type": "string",
              "valid_options": [

              ]
            },
            {
              "default_value": "small",
              "description": "Gear size for the cartridge.",
              "name": "cartridges[][gear_size]",
              "type": "string",
              "valid_options": [
                "small"
              ]
            },
            {
              "default_value": null,
              "description": "A URL to a downloadable cartridge. You may specify an multiple urls via {'cartridges' : [{'url':'http://...'}, ...]}",
              "name": "cartridges[][url]",
              "type": "string",
              "valid_options": [

              ]
            },
            {
              "default_value": null,
              "description": "Add or Update application environment variables, e.g.:[{'name':'FOO', 'value':'123'}, {'name':'BAR', 'value':'abc'}]",
              "name": "environment_variables",
              "type": "array",
              "valid_options": [

              ]
            }
          ],
          "rel": "Create new application",
          "required_params": [
            {
              "description": "Name of the application",
              "invalid_options": [
                "amentra",
                "aop",
                "apiviz",
                "arquillian",
                "blacktie",
                "boxgrinder",
                "byteman",
                "cirras",
                "cloud",
                "cloudforms",
                "cygwin",
                "davcache",
                "dogtag",
                "drools",
                "drools",
                "ejb3",
                "errai",
                "esb",
                "fedora",
                "freeipa",
                "gatein",
                "git",
                "gfs",
                "gravel",
                "guvnor",
                "hibernate",
                "hornetq",
                "iiop",
                "infinispan",
                "ironjacamar",
                "javassist",
                "jbcaa",
                "jbcd",
                "jboss",
                "jbpm",
                "jdcom",
                "jgroups",
                "jmx",
                "jopr",
                "jrunit",
                "jsfunit",
                "kosmos",
                "liberation",
                "makara",
                "mass",
                "maven",
                "metajizer",
                "metamatrix",
                "mobicents",
                "mod_cluster",
                "modeshape",
                "mugshot",
                "mysql",
                "netty",
                "openshift",
                "osgi",
                "overlord",
                "ovirt",
                "penrose",
                "picketbox",
                "picketlink",
                "portletbridge",
                "portletswap",
                "posse",
                "pressgang",
                "qumranet",
                "railo",
                "redhat",
                "resteasy",
                "rhca",
                "rhcds",
                "rhce",
                "rhcsa",
                "rhcss",
                "rhct",
                "rhcva",
                "rhel",
                "rhev",
                "rhq",
                "rhx",
                "richfaces",
                "riftsaw",
                "savara",
                "scribble",
                "seam",
                "shadowman",
                "shotoku",
                "shrinkwrap",
                "snowdrop",
                "solidice",
                "spacewalk",
                "spice",
                "steamcannon",
                "stormgrind",
                "switchyard",
                "tattletale",
                "teiid",
                "tohu",
                "torquebox",
                "weld",
                "wise",
                "xnio"
              ],
              "name": "name",
              "type": "string",
              "valid_options": [

              ]
            }
          ]
        },
        "LIST_APPLICATIONS": {
          "href": "https://openshift.redhat.com/broker/rest/domain/mydomain/applications",
          "method": "GET",
          "optional_params": [

          ],
          "rel": "List applications for a domain",
          "required_params": [

          ]
        },
        "LIST_MEMBERS": {
          "href": "https://openshift.redhat.com/broker/rest/domain/mydomain/members",
          "method": "GET",
          "optional_params": [

          ],
          "rel": "List members of this domain",
          "required_params": [

          ]
        },
        "UPDATE_MEMBERS": {
          "href": "https://openshift.redhat.com/broker/rest/domain/mydomain/members",
          "method": "PATCH",
          "optional_params": [
            {
              "default_value": "user",
              "description": "The member's type. i.e. user or team",
              "name": "type",
              "type": "string",
              "valid_options": [
                "user",
                "team"
              ]
            },
            {
              "default_value": null,
              "description": "Unique identifier of the member for the given member type (user or team ID)",
              "name": "id",
              "type": "string",
              "valid_options": [

              ]
            },
            {
              "default_value": null,
              "description": "The user's login attribute",
              "name": "login",
              "type": "string",
              "valid_options": [

              ]
            },
            {
              "default_value": null,
              "description": "An array of members to add with corresponding type and role. e.g. {'members': [{'login': 'foo', 'type': 'user', 'role': 'view'}, {'id': '5326534e2046fde9d3000001', 'type': 'team', 'role': 'none'}]}",
              "name": "members",
              "type": "Array",
              "valid_options": [

              ]
            }
          ],
          "rel": "Add or remove one or more members to this domain.",
          "required_params": [
            {
              "description": "The role the member should have on the domain",
              "invalid_options": [

              ],
              "name": "role",
              "type": "string",
              "valid_options": [
                "view",
                "edit",
                "admin"
              ]
            }
          ]
        },
        "LEAVE": {
          "href": "https://openshift.redhat.com/broker/rest/domain/mydomain/members/self",
          "method": "DELETE",
          "optional_params": [

          ],
          "rel": "Remove yourself as a member of the domain",
          "required_params": [

          ]
        },
        "UPDATE": {
          "href": "https://openshift.redhat.com/broker/rest/domain/mydomain",
          "method": "PUT",
          "optional_params": [
            {
              "default_value": null,
              "description": "Array of zero or more gear sizes allowed on this domain",
              "name": "allowed_gear_sizes",
              "type": "array",
              "valid_options": [
                "small",
                "medium",
                "large",
                "c9"
              ]
            }
          ],
          "rel": "Update domain",
          "required_params": [
            {
              "description": "Name of the domain",
              "invalid_options": [

              ],
              "name": "name",
              "type": "string",
              "valid_options": [

              ]
            }
          ]
        },
        "DELETE": {
          "href": "https://openshift.redhat.com/broker/rest/domain/mydomain",
          "method": "DELETE",
          "optional_params": [
            {
              "default_value": false,
              "description": "Force delete domain.  i.e. delete any applications under this domain",
              "name": "force",
              "type": "boolean",
              "valid_options": [
                true,
                false
              ]
            }
          ],
          "rel": "Delete domain",
          "required_params": [

          ]
        }
      },
      "max_storage_per_gear": 20,
      "members": [
        {
          "explicit_role": null,
          "from": [
            {
              "type": "owner",
              "role": "admin"
            }
          ],
          "id": "536074d1194e4cdc2a000001",
          "links": {
            "GET": {
              "href": "https://openshift.redhat.com/broker/rest/domain/mydomain/member/536074d1194e4cdc2a000001",
              "method": "GET",
              "optional_params": [

              ],
              "rel": "Get member",
              "required_params": [

              ]
            },
            "UPDATE": {
              "href": "https://openshift.redhat.com/broker/rest/domain/mydomain/member/536074d1194e4cdc2a000001",
              "method": "PUT",
              "optional_params": [

              ],
              "rel": "Update member",
              "required_params": [
                {
                  "description": "New role for member",
                  "invalid_options": [

                  ],
                  "name": "role",
                  "type": "string",
                  "valid_options": [

                  ]
                }
              ]
            },
            "DELETE": {
              "href": "https://openshift.redhat.com/broker/rest/domain/mydomain/member/536074d1194e4cdc2a000001",
              "method": "DELETE",
              "optional_params": [

              ],
              "rel": "Delete member",
              "required_params": [

              ]
            }
          },
          "login": "[email protected]",
          "owner": true,
          "role": "admin",
          "type": "user"
        },
        {
          "explicit_role": "view",
          "id": "536074d2194e4cdc2a000003",
          "links": {
            "GET": {
              "href": "https://openshift.redhat.com/broker/rest/domain/mydomain/member/536074d2194e4cdc2a000003",
              "method": "GET",
              "optional_params": [

              ],
              "rel": "Get member",
              "required_params": [

              ]
            },
            "UPDATE": {
              "href": "https://openshift.redhat.com/broker/rest/domain/mydomain/member/536074d2194e4cdc2a000003",
              "method": "PUT",
              "optional_params": [

              ],
              "rel": "Update member",
              "required_params": [
                {
                  "description": "New role for member",
                  "invalid_options": [

                  ],
                  "name": "role",
                  "type": "string",
                  "valid_options": [

                  ]
                }
              ]
            },
            "DELETE": {
              "href": "https://openshift.redhat.com/broker/rest/domain/mydomain/member/536074d2194e4cdc2a000003",
              "method": "DELETE",
              "optional_params": [

              ],
              "rel": "Delete member",
              "required_params": [

              ]
            }
          },
          "login": "[email protected]",
          "owner": false,
          "role": "view",
          "type": "user"
        }
      ],
      "name": "mydomain",
      "private_ssl_certificates": true,
      "suffix": "dev.rhcloud.com",
      "usage_rates": {
      }
    }
  ],
  "messages": [

  ],
  "status": "ok",
  "supported_api_versions": [
    1.0,
    1.1,
    1.2,
    1.3,
    1.4,
    1.5,
    1.6,
    1.7
  ],
  "type": "domains",
  "version": "1.6"
}