# IRPCServerAdmin.GetServerEndpointSettings

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Administration API](https://developer.m-files.com/APIs/gRPC-API/admin/index.md) > [Server administration](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCServerAdmin/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCServerAdmin/GetServerEndpointSettings/

Badges: `Administration API / specialized` `admin` `session`

Gets the TLS setting and the certificate of the server's gRPC endpoint.

- **Service:** [Server administration](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCServerAdmin/index.md) `MFiles.IRPCServerAdmin`
- **gRPC method:** `/MFiles.IRPCServerAdmin/GetServerEndpointSettings`
- **HTTP (mf-http-grpc):** `POST /grpc/v1/get-server-endpoint-settings`
- **Request:** [`GetServerEndpointSettingsRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCServerAdmin/GetServerEndpointSettings/index.md#request)
- **Response:** [`GetServerEndpointSettingsResponse`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCServerAdmin/GetServerEndpointSettings/index.md#response)
- **Book and level:** Administration API, specialized
- **Kind:** admin
- **Session:** Required: the session ID from LogIn in the mfiles-session-id-bin metadata.
- **Idempotent:** no
- **Returns metadata structure version:** no
- **Streaming:** none (unary)

<a id="remarks"></a>

## Remarks

- Requires the system administrator server role (server right `shutdown`). Denied for other
  callers.
- Also fails with the same access denied error when certificate management has been disabled
  on the server.
- Fails with "Not implemented." if more than one certificate is stored.
- Only the public parts of the certificate and key are returned.

<a id="request"></a>

## Request: GetServerEndpointSettingsRequest

No fields.

<a id="response"></a>

## Response: GetServerEndpointSettingsResponse

> Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

| Field | Type | Description |
|---|---|---|
| `server_endpoint_info` | [`ServerEndpointSettings`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ServerEndpointSettings/index.md) | Whether TLS is enabled, the stored certificate, and whether changes are waiting to be applied (`has_pending_changes`). See [ServerEndpointSettings](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ServerEndpointSettings/index.md). |
| `server_endpoint_info.use_tls` | `bool` | True to enable TLS on the endpoint. |
| `server_endpoint_info.server_certificates[]` | repeated [`ServerCertificate`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ServerCertificate/index.md) | Server certificates. |
| `server_endpoint_info.server_certificates[].id` | `int32` | Certificate id. |
| `server_endpoint_info.server_certificates[].certificate` | [`CertificateInfo`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.CertificateInfo/index.md) | Certificate info. |
| `server_endpoint_info.server_certificates[].private_key` | [`PrivateKeyInfo`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.PrivateKeyInfo/index.md) | Private key info. |
| `server_endpoint_info.has_pending_changes` | `bool` | True if there are pending changes on the server. |
