Service parameters
The request lets you get the names and IDs of all the services connected to the user's project.
Request format
To view the parameters of all the project services, use an HTTP request with the GET
method:
GET /projects/<project_id>/services
Host: api-developer.tech.yandex.net
X-Auth-Key: <your API key>
<project_id>
Project ID.
Host
The URL of the node providing the API.
X-Auth-Key
Authorization key.
Response format
If the request has been completed successfully, the API returns a response with the code 200. The response body contains an object in JSON format:
{
"services": [
{
"id": "<service ID>",
"name": "<service name>"
},
...
]
}
Response properties
Key |
Value |
|
An array with information about the services. |
Properties of the |
|
|
Service ID. |
|
The name of the service. |
If the request has failed, the response message contains information about errors:
HTTP error code |
Error description |
|
One of the request parameters has an invalid value or data format. |
|
The user or app does not have rights to access the resource; the request is rejected. |
|
The requested resource is not found. |
|
Internal service error. Try resending your request later. |
|
The API service is temporarily unavailable. |
The URL of the node providing the API.
Authorization key.
Project ID.