I made call list Endpoint Template with service Id and it seems not working as expected.
please view below example:
as the result of list services:
{
"OS-KSADM:services": [
{
"description": "openstack identity service",
"type": "identity",
"id": "7",
"name": "identity"
},
....
please notice that service type with name 'identity' has id '7'
I used this id to get list of endpoint template with service id=7
GET http://localhost:35357/v2.0/OS-KSCATALOG/endpointTemplates?serviceId=7 HTTP/1.1
Accept-Encoding: gzip,deflate
X-Auth-Token: 9da3dca9-a378-4234-8525-4b9d61b7684b
Accept: application/xml
User-Agent: Jakarta Commons-HttpClient/3.1
Host: localhost:35357
The result seems return everything:
<endpointTemplates xmlns="http://docs.openstack.org/identity/api/ext/OS-KSCATALOG/v1.0">
<endpointTemplate id="12" region="RegionTwo" name="identity" type="identity" publicURL="http://keystone.publicinternets.com/v2.0" adminURL="http://127.0.0.1:35357/v2.0" internalURL="http://127.0.0.1:5000/v2.0" enabled="true" global="true"/>
<endpointTemplate id="11" region="RegionOne" name="identity" type="identity" publicURL="http://keystone.publicinternets.com/v2.0" adminURL="http://127.0.0.1:35357/v2.0" internalURL="http://127.0.0.1:5000/v2.0" enabled="true" global="true"/>
<endpointTemplate id="10" region="RegionOne" name="cdn" type="object-store" publicURL="http://cdn.publicinternets.com/v1.1/%tenant_id%" adminURL="http://cdn.admin-nets.local/v1.1/%tenant_id%" internalURL="http://127.0.0.1:7777/v1.1/%tenant_id%" enabled="true"/>
<endpointTemplate id="9" region="RegionOne" name="glance" type="image" publicURL="http://glance.publicinternets.com/v1.1/%tenant_id%" adminURL="http://nova.admin-nets.local/v1.1/%tenant_id%" internalURL="http://127.0.0.1:9292/v1.1/%tenant_id%" enabled="true"/>
<endpointTemplate id="8" region="RegionOne" name="nova_compat" type="compute" publicURL="http://nova.publicinternets.com/v1.1/" adminURL="http://127.0.0.1:8774/v1.1" internalURL="http://localhost:8774/v1.1" enabled="true"/>
<endpointTemplate id="7" region="RegionOne" name="nova" type="compute" publicURL="http://nova.publicinternets.com/v1.0/" adminURL="http://127.0.0.1:8774/v1.0" internalURL="http://localhost:8774/v1.0" enabled="true"/>
<endpointTemplate id="6" region="RegionOne" name="swift" type="object-store" publicURL="http://swift.publicinternets.com/v1/AUTH_%tenant_id%" adminURL="http://swift.admin-nets.local:8080/" internalURL="http://127.0.0.1:8080/v1/AUTH_%tenant_id%" enabled="true"/>
<endpointTemplate id="5" region="RegionOne" name="cdn" type="object-store" publicURL="http://cdn.publicinternets.com/v1.1/%tenant_id%" adminURL="http://cdn.admin-nets.local/v1.1/%tenant_id%" internalURL="http://127.0.0.1:7777/v1.1/%tenant_id%" enabled="true">
<version id="1.1" info="http://127.0.0.1:7777/v1.1" list="http://127.0.0.1:7777/" xmlns="http://docs.openstack.org/identity/api/v2.0"/>
</endpointTemplate>
<endpointTemplate id="4" region="RegionOne" name="glance" type="image" publicURL="http://glance.publicinternets.com/v1.1/%tenant_id%" adminURL="http://nova.admin-nets.local/v1.1/%tenant_id%" internalURL="http://127.0.0.1:9292/v1.1/%tenant_id%" enabled="true"/>
<endpointTemplate id="3" region="RegionOne" name="nova" type="compute" publicURL="http://nova.publicinternets.com/v1.1/" adminURL="http://127.0.0.1:8774/v1.1" internalURL="http://localhost:8774/v1.1" enabled="true"/>
</endpointTemplates>
I am implementing this call.This has not been implemented.However this call is part of the contract.