Index
LookupService
(interface)RegistrationService
(interface)CreateEndpointRequest
(message)CreateNamespaceRequest
(message)CreateServiceRequest
(message)DeleteEndpointRequest
(message)DeleteNamespaceRequest
(message)DeleteServiceRequest
(message)Endpoint
(message)GetEndpointRequest
(message)GetNamespaceRequest
(message)GetServiceRequest
(message)ListEndpointsRequest
(message)ListEndpointsResponse
(message)ListNamespacesRequest
(message)ListNamespacesResponse
(message)ListServicesRequest
(message)ListServicesResponse
(message)Namespace
(message)ResolveServiceRequest
(message)ResolveServiceResponse
(message)Service
(message)UpdateEndpointRequest
(message)UpdateNamespaceRequest
(message)UpdateServiceRequest
(message)
LookupService
Service Directory API for looking up service data at runtime.
ResolveService |
---|
Returns a
|
RegistrationService
Service Directory API for registering services. It defines the following resource model:
The API has a collection of
Namespace
resources, namedprojects/*/locations/*/namespaces/*
.Each Namespace has a collection of
Service
resources, namedprojects/*/locations/*/namespaces/*/services/*
.Each Service has a collection of
Endpoint
resources, namedprojects/*/locations/*/namespaces/*/services/*/endpoints/*
.
CreateEndpoint |
---|
Creates an endpoint, and returns the new endpoint.
|
CreateNamespace |
---|
Creates a namespace, and returns the new namespace.
|
CreateService |
---|
Creates a service, and returns the new service.
|
DeleteEndpoint |
---|
Deletes an endpoint.
|
DeleteNamespace |
---|
Deletes a namespace. This also deletes all services and endpoints in the namespace.
|
DeleteService |
---|
Deletes a service. This also deletes all endpoints associated with the service.
|
GetEndpoint |
---|
Gets an endpoint.
|
GetIamPolicy |
---|
Gets the IAM Policy for a resource (namespace or service only).
|
GetNamespace |
---|
Gets a namespace.
|
GetService |
---|
Gets a service.
|
ListEndpoints |
---|
Lists all endpoints.
|
ListNamespaces |
---|
Lists all namespaces.
|
ListServices |
---|
Lists all services belonging to a namespace.
|
SetIamPolicy |
---|
Sets the IAM Policy for a resource (namespace or service only).
|
TestIamPermissions |
---|
Tests IAM permissions for a resource (namespace or service only).
|
UpdateEndpoint |
---|
Updates an endpoint.
|
UpdateNamespace |
---|
Updates a namespace.
|
UpdateService |
---|
Updates a service.
|
CreateEndpointRequest
The request message for RegistrationService.CreateEndpoint
.
Fields | |
---|---|
parent |
Required. The resource name of the service that this endpoint provides. Authorization requires the following IAM permission on the specified resource
|
endpoint_id |
Required. The Resource ID must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression |
endpoint |
Required. A endpoint with initial fields set. |
CreateNamespaceRequest
The request message for RegistrationService.CreateNamespace
.
Fields | |
---|---|
parent |
Required. The resource name of the project and location the namespace will be created in. Authorization requires the following IAM permission on the specified resource
|
namespace_id |
Required. The Resource ID must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression |
namespace |
Required. A namespace with initial fields set. |
CreateServiceRequest
The request message for RegistrationService.CreateService
.
Fields | |
---|---|
parent |
Required. The resource name of the namespace this service will belong to. Authorization requires the following IAM permission on the specified resource
|
service_id |
Required. The Resource ID must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression |
service |
Required. A service with initial fields set. |
DeleteEndpointRequest
The request message for RegistrationService.DeleteEndpoint
.
Fields | |
---|---|
name |
Required. The name of the endpoint to delete. Authorization requires the following IAM permission on the specified resource
|
DeleteNamespaceRequest
The request message for RegistrationService.DeleteNamespace
.
Fields | |
---|---|
name |
Required. The name of the namespace to delete. Authorization requires the following IAM permission on the specified resource
|
DeleteServiceRequest
The request message for RegistrationService.DeleteService
.
Fields | |
---|---|
name |
Required. The name of the service to delete. Authorization requires the following IAM permission on the specified resource
|
Endpoint
An individual endpoint that provides a service
. The service must already exist to create an endpoint.
Fields | |
---|---|
name |
Immutable. The resource name for the endpoint in the format |
address |
Optional. An IPv4 or IPv6 address. Service Directory rejects bad addresses like:
Limited to 45 characters. |
port |
Optional. Service Directory rejects values outside of |
annotations |
Optional. Annotations for the endpoint. This data can be consumed by service clients. Restrictions:
Note: This field is equivalent to the |
network |
Immutable. The Google Compute Engine network (VPC) of the endpoint in the format The project must be specified by project number (project id is rejected). Incorrectly formatted networks are rejected, we also check to make sure that you have the servicedirectory.networks.attach permission on the project specified. |
uid |
Output only. The globally unique identifier of the endpoint in the UUID4 format. |
GetEndpointRequest
The request message for RegistrationService.GetEndpoint
. This should not be used to lookup endpoints at runtime. Instead, use the resolve
method.
Fields | |
---|---|
name |
Required. The name of the endpoint to get. Authorization requires the following IAM permission on the specified resource
|
GetNamespaceRequest
The request message for RegistrationService.GetNamespace
.
Fields | |
---|---|
name |
Required. The name of the namespace to retrieve. Authorization requires the following IAM permission on the specified resource
|
GetServiceRequest
The request message for RegistrationService.GetService
. This should not be used for looking up a service. Instead, use the resolve
method as it contains all endpoints and associated annotations.
Fields | |
---|---|
name |
Required. The name of the service to get. Authorization requires the following IAM permission on the specified resource
|
ListEndpointsRequest
The request message for RegistrationService.ListEndpoints
.
Fields | |
---|---|
parent |
Required. The resource name of the service whose endpoints you'd like to list. Authorization requires the following IAM permission on the specified resource
|
page_size |
Optional. The maximum number of items to return. |
page_token |
Optional. The next_page_token value returned from a previous List request, if any. |
filter |
Optional. The filter to list results by. General
Examples of valid filters:
For more information about filtering, see API Filtering. |
order_by |
Optional. The order to list results by. General
Note that an empty |
ListEndpointsResponse
The response message for RegistrationService.ListEndpoints
.
Fields | |
---|---|
endpoints[] |
The list of endpoints. |
next_page_token |
Token to retrieve the next page of results, or empty if there are no more results in the list. |
ListNamespacesRequest
The request message for RegistrationService.ListNamespaces
.
Fields | |
---|---|
parent |
Required. The resource name of the project and location whose namespaces you'd like to list. Authorization requires the following IAM permission on the specified resource
|
page_size |
Optional. The maximum number of items to return. |
page_token |
Optional. The next_page_token value returned from a previous List request, if any. |
filter |
Optional. The filter to list results by. General
Examples of valid filters:
For more information about filtering, see API Filtering. |
order_by |
Optional. The order to list results by. General
Note that an empty |
ListNamespacesResponse
The response message for RegistrationService.ListNamespaces
.
Fields | |
---|---|
namespaces[] |
The list of namespaces. |
next_page_token |
Token to retrieve the next page of results, or empty if there are no more results in the list. |
ListServicesRequest
The request message for RegistrationService.ListServices
.
Fields | |
---|---|
parent |
Required. The resource name of the namespace whose services you'd like to list. Authorization requires the following IAM permission on the specified resource
|
page_size |
Optional. The maximum number of items to return. |
page_token |
Optional. The next_page_token value returned from a previous List request, if any. |
filter |
Optional. The filter to list results by. General
Examples of valid filters:
For more information about filtering, see API Filtering. |
order_by |
Optional. The order to list results by. General
Note that an empty |
ListServicesResponse
The response message for RegistrationService.ListServices
.
Fields | |
---|---|
services[] |
The list of services. |
next_page_token |
Token to retrieve the next page of results, or empty if there are no more results in the list. |
Namespace
A container for services
. Namespaces allow administrators to group services together and define permissions for a collection of services.
Fields | |
---|---|
name |
Immutable. The resource name for the namespace in the format |
labels |
Optional. Resource labels associated with this namespace. No more than 64 user labels can be associated with a given resource. Label keys and values can be no longer than 63 characters. |
uid |
Output only. The globally unique identifier of the namespace in the UUID4 format. |
ResolveServiceRequest
The request message for LookupService.ResolveService
. Looks up a service by its name, returns the service and its endpoints.
Fields | |
---|---|
name |
Required. The name of the service to resolve. Authorization requires the following IAM permission on the specified resource
|
max_endpoints |
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. |
endpoint_filter |
Optional. The filter applied to the endpoints of the resolved service. General
Examples of valid filters:
For more information about filtering, see API Filtering. |
ResolveServiceResponse
The response message for LookupService.ResolveService
.
Fields | |
---|---|
service |
Service
An individual service. A service contains a name and optional metadata. A service must exist before endpoints
can be added to it.
Fields | |
---|---|
name |
Immutable. The resource name for the service in the format |
annotations |
Optional. Annotations for the service. This data can be consumed by service clients. Restrictions:
Note: This field is equivalent to the |
endpoints[] |
Output only. Endpoints associated with this service. Returned on |
uid |
Output only. The globally unique identifier of the service in the UUID4 format. |
UpdateEndpointRequest
The request message for RegistrationService.UpdateEndpoint
.
Fields | |
---|---|
endpoint |
Required. The updated endpoint. Authorization requires the following IAM permission on the specified resource
|
update_mask |
Required. List of fields to be updated in this request. |
UpdateNamespaceRequest
The request message for RegistrationService.UpdateNamespace
.
Fields | |
---|---|
namespace |
Required. The updated namespace. Authorization requires the following IAM permission on the specified resource
|
update_mask |
Required. List of fields to be updated in this request. |
UpdateServiceRequest
The request message for RegistrationService.UpdateService
.
Fields | |
---|---|
service |
Required. The updated service. Authorization requires the following IAM permission on the specified resource
|
update_mask |
Required. List of fields to be updated in this request. |