Method | URI | Description |
---|---|---|
POST | /v2.0/OS-KSADM/services{?marker,limit} | Adds a service. |
Normal response codes: 201
Error response codes: identityFault (400, 500, …), badRequest (400), unauthorized (401), forbidden (403), badMethod (405), overLimit (413), serviceUnavailable (503), badMediaType (415), itemNotFound (404)
This table shows the header parameters for the add service request:
Name | Type | Description |
---|---|---|
| String (Required) | A valid authentication token for an administrative user. |
Example 4.35. Add Service: XML request
<?xml version="1.0" encoding="UTF-8"?> <service xmlns="http://docs.openstack.org/identity/api/ext/OS-KSADM/v1.0" id="123" name="nova" type="compute" description="OpenStack Compute Service"/>
Example 4.36. Add Service: JSON request
{ "OS-KSADM:service":{ "id": "123", "name": "nova", "type": "compute", "description": "OpenStack Compute Service" } }
This table shows the header parameters for the add service response:
Name | Type | Description |
---|---|---|
| AnyURI (Optional) | The location. |
Example 4.37. Add Service: XML response
<?xml version="1.0" encoding="UTF-8"?> <service xmlns="http://docs.openstack.org/identity/api/ext/OS-KSADM/v1.0" id="123" name="nova" type="compute" description="OpenStack Compute Service"/>
Example 4.38. Add Service: JSON response
{ "OS-KSADM:service":{ "id": "123", "name": "nova", "type": "compute", "description": "OpenStack Compute Service" } }