이 콘텐츠는 선택한 언어로 제공되지 않습니다.
7.5. Update Domain
Description
Update an existing domain.
Method and URL Structure
Method | URL Structure |
---|---|
PUT | /broker/rest/domains/:name |
Request Parameters
Name | Description | Required | Default |
---|---|---|---|
name | Name of domain | Yes | |
allowed_gear_sizes | Array of zero or more gear sizes allowed on this domain | No |
See Section A.3, “Domains” for more information about the valid options applicable to these request parameters.
Request
{ "name": "mydomainX", "allowed_gear_sizes": "small" }
{
"name": "mydomainX",
"allowed_gear_sizes": "small"
}
cURL Command Example
curl -X PUT https://openshift.redhat.com/broker/rest/domains/mydomain --user user@example.com --data-urlencode name=mydomainx --data-urlencode allowed_gear_sizes=small
$ curl -X PUT https://openshift.redhat.com/broker/rest/domains/mydomain --user user@example.com --data-urlencode name=mydomainx --data-urlencode allowed_gear_sizes=small
JSON Response
The API returns the domain resource with related resource links which have been left out for brevity. See Chapter 7, Domains for more information on all domain parameters.