Returns a service
and its associated endpoints. Resolving a service is not considered an active developer method.
HTTP request
POST https://servicedirectory.googleapis.com/v1/{name=projects/*/locations/*/namespaces/*/services/*}:resolve
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
name |
Required. The name of the service to resolve. Authorization requires the following IAM permission on the specified resource
|
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "maxEndpoints": integer, "endpointFilter": string } |
Fields | |
---|---|
maxEndpoints |
Optional. The maximum number of endpoints to return. Defaults to 25. Maximum is 100. If a value less than one is specified, the Default is used. If a value greater than the Maximum is specified, the Maximum is used. |
endpointFilter |
Optional. The filter applied to the endpoints of the resolved service. General
Examples of valid filters:
For more information about filtering, see API Filtering. |
Response body
If successful, the response body contains data with the following structure:
The response message for LookupService.ResolveService
.
JSON representation |
---|
{
"service": {
object ( |
Fields | |
---|---|
service |
|
Authorization Scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.