# IRPCServerAdmin.GetSubscriptionInfo

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/GetSubscriptionInfo/

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

Gets whether and how the server is connected to an M-Files Manage subscription.

- **Service:** [Server administration](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCServerAdmin/index.md) `MFiles.IRPCServerAdmin`
- **gRPC method:** `/MFiles.IRPCServerAdmin/GetSubscriptionInfo`
- **HTTP (mf-http-grpc):** `POST /grpc/v1/get-subscription-info`
- **Request:** [`GetSubscriptionInfoRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCServerAdmin/GetSubscriptionInfo/index.md#request)
- **Response:** [`GetSubscriptionInfoResponse`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCServerAdmin/GetSubscriptionInfo/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:** yes
- **Returns metadata structure version:** no
- **Streaming:** none (unary)

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

## Remarks

- Any session can call it; no server right is needed.
- The server asks M-Files Manage for the information, so the call needs network access from the
  server; if M-Files Manage cannot be reached, a server that is not yet joined returns
  `can_join` false.

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

## Request: GetSubscriptionInfoRequest

No fields.

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

## Response: GetSubscriptionInfoResponse

> 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 |
|---|---|---|
| `subscription_info` | [`SubscriptionInfo`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.SubscriptionInfo/index.md) | The subscription the server is joined to and related flags. See [SubscriptionInfo](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.SubscriptionInfo/index.md). |
| `subscription_info.authentication_server` | `string` | The network address (name) of the mAuth server. |
| `subscription_info.subscription` | `string` | The subscription info server is joined to. |
| `subscription_info.manage_address` | `string` | The URL to the manage web. |
| `subscription_info.uses_one_db` | `bool` | True if server uses OneDb. |
| `subscription_info.can_join` | `bool` | True to allow changing the OneDb configuration. |
| `subscription_info.is_on_prem` | `bool` | True if joined to subscription and not in container. |
| `subscription_info.is_isolated` | `bool` | True if server is in isolated container. |
