Service Directory API
Service Directory is a platform for discovering, publishing, and connecting services.
Developer tools#openapi#analytics#media
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
Service Directory is a platform for discovering, publishing, and connecting services.
Endpoints 14
projects.locations.namespaces.services.endpoints
- GETGets an endpoint.
/v1/:nameGets an endpoint. - DELETEDeletes an endpoint.
/v1/:nameDeletes an endpoint. - PATCHUpdates an endpoint.
/v1/:name?updateMask=stringUpdates an endpoint. - GETLists all endpoints.
/v1/:parent/endpoints?filter=string&orderBy=string&pageSize=0&pageToken=stringLists all endpoints. - POSTCreates an endpoint, and returns the new endpoint.
/v1/:parent/endpoints?endpointId=stringCreates an endpoint, and returns the new endpoint.
projects.locations
- GETLists information about the supported locations for this service
/v1/:name/locations?extraLocationTypes=string&filter=string&pageSize=0&pageToken=stringLists information about the supported locations for this service. This method lists locations based on the resource scope provided in the…
projects.locations.namespaces
- GETLists all namespaces.
/v1/:parent/namespaces?filter=string&orderBy=string&pageSize=0&pageToken=stringLists all namespaces. - POSTCreates a namespace, and returns the new namespace.
/v1/:parent/namespaces?namespaceId=stringCreates a namespace, and returns the new namespace.
projects.locations.namespaces.services
- POSTGets the IAM Policy for a resource (namespace or service only).
/v1/:resource:getIamPolicyGets the IAM Policy for a resource (namespace or service only). - POSTSets the IAM Policy for a resource (namespace or service only).
/v1/:resource:setIamPolicySets the IAM Policy for a resource (namespace or service only). - POSTTests IAM permissions for a resource (namespace or service only).
/v1/:resource:testIamPermissionsTests IAM permissions for a resource (namespace or service only). - GETLists all services belonging to a namespace.
/v1/:parent/services?filter=string&orderBy=string&pageSize=0&pageToken=stringLists all services belonging to a namespace. - POSTCreates a service, and returns the new service.
/v1/:parent/services?serviceId=stringCreates a service, and returns the new service. - POSTReturns a service and its associated endpoints
/v1/:name:resolveReturns a service and its associated endpoints. Resolving a service is not considered an active developer method.
API details
- Base URL
https://servicedirectory.googleapis.com- Authentication
- OAuth 2.0 (authorization code flow) with 1 scope
An API key in the key query parameter - Operations
- 14 operations on 9 pathsPOST 7GET 5PATCH 1DELETE 1
- Main resources
- projects.locations.namespaces.services 6projects.locations.namespaces.services.endpoints 5projects.locations.namespaces 2projects.locations 1
- Response formats
application/json- Description format
- Google API Discovery, API version
v1 - Links
- Documentation · OpenAPI document
- Listed from
- Google API Discovery document (googleapis/discovery-artifact-manager) (Apache-2.0)
How to test the Service Directory API in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the Service Directory API collection, without the publisher's secrets.
- Add your credentialsThis API uses OAuth 2.0 (authorization code flow) with 1 scope. Add yours in the collection's variables or an environment; the requests already reference it.
- Send a requestPick an endpoint, for example “Gets an endpoint.” (GET /v1/:name), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the Service Directory API?
Service Directory is a platform for discovering, publishing, and connecting services. It is listed under Developer tools and has 14 endpoints.
Who publishes the Service Directory API?
It is listed from Google's public API description (an OpenAPI document), not published by Google on Swastik Codes. Anyone who controls googleapis.com can claim the profile by adding a DNS TXT record.
What is the base URL of the Service Directory API?
Requests go to https://servicedirectory.googleapis.com. Endpoint paths are added to this base URL.
How do I authenticate with the Service Directory API?
It accepts 2 methods: OAuth 2.0 (authorization code flow) with 1 scope; an API key in the key query parameter.
How many endpoints does the Service Directory API have?
14 operations on 9 paths (7 POST, 5 GET, 1 PATCH, 1 DELETE). The largest groups are projects.locations.namespaces.services, projects.locations.namespaces.services.endpoints, projects.locations.namespaces, projects.locations.
Is forking the Service Directory API free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.