Method | URI | Description |
---|---|---|
POST | /v2.0/tenants/{tenantId}/OS-KSCATALOG/endpoints | Adds endpoint to a tenant. |
Normal response codes: 201
Error response codes: identityFault (400, 500, …), badRequest (400), unauthorized (401), forbidden (403), badMethod (405), overLimit (413), serviceUnavailable (503), itemNotFound (404), badMediaType (415)
This table shows the header parameters for the add endpoint request:
Name | Type | Description |
---|---|---|
| String (Required) | A valid authentication token for an administrative user. |
This table shows the URI parameters for the add endpoint request:
Name | Type | Description |
---|---|---|
| String | The tenant ID. |
This table shows the body parameters for the add endpoint request:
Name | Type | Description |
---|---|---|
| EndpointTemplateWithOnlyId (Optional) |
Example 4.53. Add Endpoint: XML request
<?xml version="1.0" encoding="UTF-8"?> <endpointTemplate xmlns="http://docs.openstack.org/identity/api/ext/OS-KSCATALOG/v1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="EndpointTemplateWithOnlyId" id="1"/>
Example 4.55. Add Endpoint: XML response
<?xml version="1.0" encoding="UTF-8"?> <endpoint id="1" tenantId="1" type="compute" name="Compute" region="North" publicURL="https://compute.north.public.com/v1" internalURL="https://compute.north.internal.com/v1" adminURL="https://compute.north.internal.com/v1" xmlns="http://docs.openstack.org/identity/api/v2.0"> <version id="1" info="https://compute.north.public.com/v1/" list="https://compute.north.public.com/" /> </endpoint>
Example 4.56. Add Endpoint: JSON response
{ "endpoint": { "id": 1, "tenantId": 1, "region": "North", "type": "compute", "publicURL": "https://compute.north.public.com/v1", "internalURL": "https://compute.north.internal.com/v1", "adminURL": "https://compute.north.internal.com/v1", "versionId": "1", "versionInfo": "https://compute.north.public.com/v1/", "versionList": "https://compute.north.public.com/" } }